Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/c/scikit-learn-0.14.1/examples/ensemble/plot_random_forest_embedding.py   scikit-learn(Download)
# Learn a Naive Bayes classifier on the transformed data
nb = BernoulliNB()
nb.fit(X_transformed, y)
 
 

src/k/a/Kaggle-HEAD/photo_quality_prediction/classification.py   Kaggle(Download)
    print 'Training with NB...'
    clf = BernoulliNB()
    clf.fit(x_train, y_train)
 
    print 'Accuracy in training set: %f' % clf.score(x_train, y_train)

src/t/e/text-as-data-HEAD/src/3 - Movie review classifier.py   text-as-data(Download)
# <codecell>
 
classifier.fit(train_vectors, train_targets)
 
# <codecell>