We support the multinomial Naive Bayes and multinomial NB model, a probabilistic learning method. here, feature values of train table must be nonnegative.

    Script

    Result

    f0 f1 f2 f3 label pred
    1.0 1.0 0.0 1.0 1 1
    1.0 0.0 1.0 1.0 1 1
    1.0 0.0 1.0 1.0 1 1
    0.0 1.0 1.0 0.0 0 0
    0.0 1.0 1.0 0.0 0 0
    0.0 1.0 1.0 0.0 0 0
    0.0 1.0 1.0 0.0 0 0
    1.0 1.0 1.0 1.0 1 1
    0.0 1.0 1.0 0.0 0 0