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

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...

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-...

1

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...

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...

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.