scxpand.util.model_type#
Simple model type detection.
This module provides utilities to: 1. Save model type to a separate file during training 2. Load model type from saved file 3. Provide helpful error messages with available options
Functions
Get list of available model types from the ModelType enum. |
|
|
Infer the model type from saved information. |
|
Load model type from saved file. |
|
Save model type to a text file. |
- scxpand.util.model_type.get_available_model_types()#
Get list of available model types from the ModelType enum.
- scxpand.util.model_type.infer_model_type_from_parameters(results_path)#
Infer the model type from saved information.
- Parameters:
results_path (
Path|str) – Path to the directory containing model files- Return type:
- Returns:
Model type string
- Raises:
ValueError – If model type cannot be determined with helpful message
- scxpand.util.model_type.load_model_type(results_path)#
Load model type from saved file.