Loading...

Linear Model#


Base Class#

linear_model.LinearModel(coef[, intercept])

InMemoryModel implementation of linear algorithms.

Methods:

LinearModel.get_attributes()

Returns the model attributes.

LinearModel.predict(X)

Predicts using the input Matrix.

LinearModel.predict_proba(X)

Computes the model's probabilites using the input matrix.

LinearModel.predict_proba_sql(X)

Returns the SQL code needed to deploy the model probabilities using its attributes.

LinearModel.predict_sql(X)

Returns the SQL code needed to deploy the model using its attributes.

LinearModel.set_attributes(**kwargs)

Sets the model attributes.

Attributes:

LinearModel.object_type

Must be overridden in child class


Linear Model Classifier#

linear_model.LinearModelClassifier(coef[, ...])

InMemoryModel Implementation of linear algorithms for classification.

Methods:

LinearModelClassifier.get_attributes()

Returns the model attributes.

LinearModelClassifier.predict(X)

Predicts using the input matrix.

LinearModelClassifier.predict_proba(X)

Computes the model's probabilites using the input matrix.

LinearModelClassifier.predict_proba_sql(X)

Returns the SQL code needed to deploy the model probabilities using its attributes.

LinearModelClassifier.predict_sql(X)

Returns the SQL code needed to deploy the model using its attributes.

LinearModelClassifier.set_attributes(**kwargs)

Sets the model attributes.

Attributes:

LinearModelClassifier.object_type

Must be overridden in child class