simpleml.models.external_models

Base Module for all external models

Inherit and extend for particular models

Module Contents

Classes

ExternalModelMixin

Wrapper class for a pickleable model with expected methods

Attributes

__author__

simpleml.models.external_models.__author__ = Elisha Yadgaran[source]
class simpleml.models.external_models.ExternalModelMixin[source]

Bases: with_metaclass(KerasRegistry, 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)

abstract fit(self, *args, **kwargs)[source]

By default nothing is implemented

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

By default nothing is implemented

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

By default nothing is implemented

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

By default nothing is implemented

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

By default nothing is implemented

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

By default nothing is implemented