Model
- class neer_match_utilities.model.Model[source]
A class for saving and loading matching models.
- save(model, target_directory, name):
Save the specified model to a target directory.
- load(model_directory):
Load a model from a given directory.
- static load(model_directory)[source]
Load a model from a specified directory.
- Parameters:
model_directory (Path) – The directory containing the saved model.
- Returns:
The loaded model.
- Return type:
DLMatchingModel or NSMatchingModel
- static save(model, target_directory, name)[source]
Save the model to a specified directory.
- Parameters:
model (DLMatchingModel or NSMatchingModel) – The model to be saved.
target_directory (Path) – The directory where the model should be saved.
name (str) – Name of the model directory.
- Return type:
None