Skip to content

Commit d97003d

Browse files
author
Rafael Cunha de Almeida
committed
using 10-fold validation
1 parent 29e5083 commit d97003d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def main():
3939
joblib.dump(model, sys.argv[2])
4040
else:
4141
t0 = time.time()
42-
scores = cross_validation.cross_val_score(model, numpy.array(dataset[0], dtype=object), dataset[1], cv=5)
42+
scores = cross_validation.cross_val_score(model, numpy.array(dataset[0], dtype=object), dataset[1], cv=10)
4343
print 'Accuracy: %0.2f (+/- %0.2f)' % (scores.mean(), scores.std()/2)
4444
print 'Validation time:', time.time() - t0
4545

0 commit comments

Comments
 (0)