Top "Cross-validation" questions

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

Cross-validation in LightGBM

After reading through LightGBM's documentation on cross-validation, I'm hoping this community can shed light on cross-validating results and improving our …

python machine-learning cross-validation kaggle lightgbm
GridSearchCV.best_score_ meaning when scoring set to 'accuracy' and CV

I'm trying to find the best model Neural Network model applied for the classification of breast cancer samples on the …

python pandas scikit-learn cross-validation grid-search
How to plot a learning curve for a keras experiment?

I'm training an RNN using keras and would like to see how the validation accuracy changes with the data set …

machine-learning neural-network cross-validation keras recurrent-neural-network
How to compute precision,recall and f1 score of an imbalanced dataset for K fold cross validation with 10 folds in python

I have an imbalanced dataset containing binary classification problem.I have built Random Forest Classifier and used k fold cross …

python scikit-learn random-forest cross-validation supervised-learning
Sklearn preprocessing - PolynomialFeatures - How to keep column names/headers of the output array / dataframe

TLDR: How to get headers for the output numpy array from the sklearn.preprocessing.PolynomialFeatures() function? Let's say I have …

python python-2.7 validation scikit-learn cross-validation
scikit-learn GridSearchCV with multiple repetitions

I'm trying to get the best set of parameters for an SVR model. I'd like to use the GridSearchCV over …

python scikit-learn cross-validation grid-search
Combining Grid search and cross validation in scikit learn

For improving Support Vector Machine outcomes i have to use grid search for searching better parameters and cross validation. I'm …

python svm scikit-learn cross-validation
How to extract the CV errors for optimal lambda using glmnet package?

I'm using the glment package for regression in R. I do the cross validation using cv.fit<-cv.glmnet(…

r cross-validation glmnet mse
TypeError: 'KFold' object is not iterable

I'm following one of the kernels on Kaggle, mainly, I'm following A kernel for Credit Card Fraud Detection. I reached …

python machine-learning scikit-learn cross-validation
Scikit F-score metric error

I am trying to predict a set of labels using Logistic Regression from SciKit. My data is really imbalanced (there …

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