Top "Cross-validation" questions

Cross-Validation is a method of evaluating and comparing predictive systems in statistics and machine learning.

difference between StratifiedKFold and StratifiedShuffleSplit in sklearn

As from the title I am wondering what is the difference between StratifiedKFold with the parameter shuffle = True StratifiedKFold(n_…

python scikit-learn cross-validation
cross validation + decision trees in sklearn

Attempting to create a decision tree with cross validation using sklearn and panads. My question is in the code below, …

machine-learning decision-tree cross-validation
Sklearn StratifiedKFold: ValueError: Supported target types are: ('binary', 'multiclass'). Got 'multilabel-indicator' instead

Working with Sklearn stratified kfold split, and when I attempt to split using multi-class, I received on error (see below). …

python machine-learning keras scikit-learn cross-validation
How is scikit-learn cross_val_predict accuracy score calculated?

Does the cross_val_predict (see doc, v0.18) with k-fold method as shown in the code below calculate accuracy for …

python scikit-learn cross-validation
Difference between cross_val_score and cross_val_predict

I want to evaluate a regression model build with scikitlearn using cross-validation and getting confused, which of the two functions …

python machine-learning scikit-learn regression cross-validation
How to perform k-fold cross validation with tensorflow?

I am following the IRIS example of tensorflow. My case now is I have all data in a single CSV …

python tensorflow cross-validation train-test-split
understanding python xgboost cv

I would like to use the xgboost cv function to find the best parameters for my training data set. I …

python cross-validation xgboost
Split tensor into training and test sets

Let's say I've read in a textfile using a TextLineReader. Is there some way to split this into train and …

tensorflow cross-validation training-data
Topic models: cross validation with loglikelihood or perplexity

I'm clustering documents using topic modeling. I need to come up with the optimal topic numbers. So, I decided to …

r tm cross-validation topic-modeling
GridSearchCV on LogisticRegression in scikit-learn

I am trying to optimize a logistic regression function in scikit-learn by using a cross-validated grid parameter search, but I …

python machine-learning scikit-learn cross-validation logistic-regression