k-fold Questions
3
Solved
I had obtained the index of training set and testing set with code below.
df = pandas.read_pickle(filepath + filename)
kf = KFold(n_splits = n_splits, shuffle = shuffle, random_state =
randomState...
Tatting asked 15/7, 2017 at 8:1
2
Solved
Based on Sklearn Docs:
Is it possible to force the use of StratifiedKFold?
How can I know which KFold has been used?
Clowers asked 22/11, 2019 at 22:40
4
Solved
I am new to pytorch and are trying to implement a feed forward neural network to classify the mnist data set. I have some problems when trying to use cross-validation. My data has the following sha...
Cannabis asked 22/11, 2019 at 14:25
1
Getting TypeError: Singleton array array(None, dtype=object) cannot be considered a valid collection
I am using different cross validation method. I first use k fold method on my code and it was perfectly well but when I use repeatedstratifiedkfold method it gives me this error
TypeError: Singleto...
Simonsimona asked 7/1, 2021 at 3:51
3
Solved
I use this code to test KFold and StratifiedKFold.
import numpy as np
from sklearn.model_selection import KFold,StratifiedKFold
X = np.array([
[1,2,3,4],
[11,12,13,14],
[21,22,23,24],
[31,32,3...
Croydon asked 16/12, 2020 at 7:30
1
Solved
It gives that memory error but memory capacity is never reached. I have 60 GB of ram on the SSH and the full dataset process consumes 30
I am trying to train an autoendcoder with k-fold. Without k-...
Rogan asked 17/9, 2020 at 7:6
1
Why we should call split() function during passing StratifiedKFold() as a parameter of GridSearchCV?
What I am trying to do?
I am trying to use StratifiedKFold() in GridSearchCV().
Then, what does confuse me?
When we use K Fold Cross Validation, we just pass the number of CV inside GridSearchCV...
Fish asked 2/6, 2020 at 7:35
1
I have a data frame with 4 different groups of features.
I need to create 4 different models with these four different feature groups and combine them with the ensemble voting classifier.
Further...
Prine asked 28/5, 2020 at 13:0
1
I'm spliting some data in train and test set according to group values. How can I do this in order to have balanced data?
In order to solve a binary classification task I have 100 samples, each on...
Keciakeck asked 27/6, 2019 at 16:18
1
Solved
I'm making a code to solve a simple problem of predict the probability of an item missing from an inventory.
I'm using the XGBoost prediction model to do this.
I have the data split in two .csv f...
Yahrzeit asked 3/12, 2019 at 22:25
1
© 2022 - 2024 — McMap. All rights reserved.