py3dinterpolations.modelling.models.ModelWrapper
- class py3dinterpolations.modelling.models.ModelWrapper(model_name: str, *args, **kwargs)
Bases:
object
model wrappper
This class is designed to allow wrapping of different models from different libraries, both external and internal to py3Dinterpolations.
Defines a fit and a predict method, to be called when interpolating.
- Parameters
model_name (str) – model name
*args – args for model
**kwargs – kwargs for model
- model
model object
- Type
object
- model_type
model type
- Type
str
- model_name
model name
- Type
str
Methods
__init__
(model_name, *args, **kwargs)fit
()predict
(*args, **kwargs)predict method
Attributes
- predict(*args, **kwargs) Union[tuple, ndarray]
predict method
Execute predictions for the model.
- Parameters
*args – args for model
**kwargs – kwargs for model