scxpand.linear.model_manager#
Model initialization and state management for linear models.
Classes
Handles model initialization and state management. |
- class scxpand.linear.model_manager.ModelManager#
Handles model initialization and state management.
- static initialize_model(prm, y_train)#
Initialize SGDClassifier with proper parameters.
- Return type:
- static load_model_state(model, best_model_state, base_save_dir, score_metric)#
Load the best model state into the SGDClassifier.
- Parameters:
model (
SGDClassifier) – SGDClassifier to load state intobest_model_state (
dict) – Dictionary containing the best model statebase_save_dir (
Path) – Directory containing saved model filesscore_metric (
str) – Metric name used for scoring
- Return type: