Skip to main content
Part of MOP models This class provides an API for the CustomModels to be implemented in Python. It is exported as an director through SWIG and the user will be able to derive from it in Python.

Public Member Functions

Detailed Description

This class provides an API for the CustomModels to be implemented in Python. It is exported as an director through SWIG and the user will be able to derive from it in Python.

Member Function Documentation

activeVariables()

virtual Returns a vector describing which input variable was active during training. Returns vector v with v[i] == 0 if input i was not active, v[i] == 1 otherwise

deserialize()

virtual This function allows an instance of the python model to deserialize its state from the given string. How this is done needs to be implemented in Python. Parameters

evaluate()

virtual Destroys an instance of this class. Evaluate the model on the given sample inputs and return the values Parameters Returns The models values on the given samples

numCoeffs()

virtual Returns the number of model coefficients used for the regression. Returns An integer

numVariables()

virtual Returns the number of active variables selected during the training process of the model. Returns An integer

residuals()

virtual Return the residuals that from the training to evaluate the quality measure with. Returns An instance of the Residuals class with the residuals from the training

serialize()

virtual This function returns the serialized data from the Python of the CustomModelInterface to be included in the CustomModel. It needs to be overloaded in Python. Returns The serialization of the python instance