Model¶
-
class
ompy.
Model
(name, _Model__isfrozen=False)[source]¶ Bases:
object
Dataclass for Model
- Variables
Name – Name of the class (for printing etc.)
Methods Summary
asdict
()wrapper for dataclasses.asdict()
Returns a list of the names of the paramters
is_changed
([include, exclude])Verify that defaults arguments have been changed
load
(path)Loads own parameters from path
save
(path)Save the model parameters to path
Methods Documentation
-
is_changed
(include=[], exclude=[])[source]¶ Verify that defaults arguments have been changed
- Parameters
- Raises
ValueError – If parameters are still the default values
- Return type
None
-
save
(path)[source]¶ Save the model parameters to path
- Parameters
path (Union[str, Path]) – The path
- Return type
None
-
is_changed
(include=[], exclude=[])[source] Verify that defaults arguments have been changed
- Parameters
- Raises
ValueError – If parameters are still the default values
- Return type
None
-
load
(path)[source] Loads own parameters from path