...
1. GaussianNB
from sklearn import datasets,cross_validation
from sklearn.naive_bayes import GaussianNB
from sklearn import metrics
#step1
x,y = datasets.make_classification(n_samples=1000,n_features=10,n_classes=2)
#step2
spl =cross_validation.KFold(len(x),n_folds=10,shuffle=True)
for train_index,test_index in spl:
x_train,y_train=x[train_index],y[train_index]
x_test,y_test=x[test_index],y[test_index]
spl=GaussianNB()
spl.fit(x_train,y_train)
pred=spl.predict(x_test)
acc = metrics.accuracy_score(y_test, pred)
print("Accuracy: %f" %acc)
f1 = metrics.f1_score(y_test, pred)
print("f1: %f" %f1)
auc = metrics.roc_auc_score(y_test, pred)
print("r