simpleml.models.external_models module

Base Module for all external models

Inherit and extend for particular models

class simpleml.models.external_models.ExternalModelMixin[source]

Bases: object

Wrapper class for a pickleable model with expected methods

Expected to be used as Mixin Class with default methods and ovewritten by the model class if methods exist

ex:

from some_model_library import ActualModelClass

class WrappedActualModelClass(ActualModelClass, ExternalModelMixin):
pass
class some_model_libraryActualModelClass(Model, [optional mixins]):
def _create_external_model(self, **kwargs):
return WrappedActualModelClass(**kwargs)
fit(*args, **kwargs)[source]

By default nothing is implemented

get_feature_metadata(*args, **kwargs)[source]

By default nothing is implemented

get_params(*args, **kwargs)[source]

By default nothing is implemented

predict(*args, **kwargs)[source]

By default nothing is implemented

score(*args, **kwargs)[source]

By default nothing is implemented

set_params(*args, **kwargs)[source]

By default nothing is implemented