Table Of Contents

NaiveBayesModel train


train(self, frame, label_column, observation_columns, lambda_parameter=1.0)

[ALPHA] Build a naive bayes model.

Parameters:

frame : Frame

A frame to train the model on.

label_column : unicode

Column containing the label for each observation.

observation_columns : list

Column(s) containing the observations.

lambda_parameter : float64 (default=1.0)

Additive smoothing parameter Default is 1.0.

Train a NaiveBayesModel using the observation column, label column of the train frame and an optional lambda value.

Examples

See here for examples.