Loading...

Naive Bayes#


Naive Bayes#

naive_bayes.NaiveBayes(attributes, prior, ...)

InMemoryModel implementation of the NaiveBayes algorithm.

Methods:

NaiveBayes.get_attributes()

Returns the model attributes.

NaiveBayes.predict(X)

Predicts using the input matrix.

NaiveBayes.predict_proba(X)

Computes the model's probabilites using the input matrix.

NaiveBayes.predict_proba_sql(X)

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

NaiveBayes.predict_sql(X)

Returns the SQL code needed to deploy the model.

NaiveBayes.set_attributes(**kwargs)

Sets the model attributes.

Attributes:

NaiveBayes.object_type

Must be overridden in child class