


Can you explain this result?
kfold = KFold(n_splits=3)
cross_val_score(logistic_regression, iris.data, iris.target, cv=kfold)
Cross-validation scores KFold(n_splits=3): [0. 0. 0.]
train_size) points randomly as the training settest_size), handy with very large datasetstrain_size=0.66, test_size=0.34 but without duplicatesWhen the data is ordered, random test sets are not a good idea
TimeSeriesSplitNo strict rules, only guidelines:
Each algorithm optimizes a given objective function (on the training data)
The choice of function is limited by what can be efficiently optimized

| Predicted Neg | Predicted Pos | |
|---|---|---|
| Actual Neg | TN | FP |
| Actual Pos | FN | TP |
confusion_matrix(y_test, y_pred): [[48 5] [ 5 85]]
Comparison
