Top "Cross-validation" questions

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

K fold cross validation using keras

It seems that k-fold cross validation in convn net is not taken seriously due to huge running time of the …

keras cross-validation
Tree sizes given by CP table in rpart

In the R package rpart, what determines the size of trees presented within the CP table for a decision tree? …

r tree decision-tree cross-validation rpart
sklearn Kfold acces single fold instead of for loop

After using cross_validation.KFold(n, n_folds=folds) I would like to access the indexes for training and testing …

python scikit-learn cross-validation
Grid Search parameter and cross-validated data set in KNN classifier in Scikit-learn

I'm trying to perform my first KNN Classifier using SciKit-Learn. I've been following the User Guide and other online examples …

scikit-learn cross-validation knn grid-search
Interpreting sklearns' GridSearchCV best score

I would like to know the difference between the score returned by GridSearchCV and the R2 metric calculated as below. …

python scikit-learn cross-validation grid-search
How to customize sklearn cross validation iterator by indices?

Similar to Custom cross validation split sklearn I want to define my own splits for GridSearchCV for which I need …

python validation scikit-learn cross-validation
I have much more than three elements in every class, but I get this error: "class cannot be less than k=3 in scikit-learn"

This is my target (y): target = [7,1,2,2,3,5,4, 1,3,1,4,4,6,6, 7,5,7,8,8,8,5, 3,3,6,2,7,7,1, 10,3,7,10,4,10, 2,2,2,7] I do not know why while I'm executing: ... # Split the data set in two …

runtime-error svm scikit-learn cross-validation
Using sklearn cross_val_score and kfolds to fit and help predict model

I'm trying to understand using kfolds cross validation from the sklearn python module. I understand the basic flow: instantiate a …

python machine-learning scikit-learn cross-validation
Using cross validation and AUC-ROC for a logistic regression model in sklearn

I'm using the sklearn package to build a logistic regression model and then evaluate it. Specifically, I want to do …

python scikit-learn logistic-regression cross-validation roc
How does LassoCV in scikit-learn partition data?

I am performing linear regression using the Lasso method in sklearn. According to their guidance, and that which I have …

python scikit-learn regression cross-validation