MCPcopy Create free account
hub / github.com/GitsSaikat/PyGen / save_model

Method save_model

data/AutoVison/context_code.py:105–109  ·  view source on GitHub ↗

Save trained model

(self, path)

Source from the content-addressed store, hash-verified

103 }
104
105 def save_model(self, path):
106 """Save trained model"""
107 if self.model is None:
108 raise ValueError("No model to save. Please train the model first.")
109 joblib.dump(self.model, path)
110
111 def load_model(self, path):
112 """Load pre-trained model"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected