I am using StratifiedKFold
and I am not sure what is the training and test size returned by kfold.split
in my code below. Assuming Print(array.shape)
returns (12904, 47)
i.e number of rows are 12904 and number of columns are 47, what would be the training and test size?
kfold = StratifiedKFold(n_splits=5, shuffle=True, random_state=8)
for train, validation in kfold.split(X, Y):
# Fit the model
model.fit(X[train], Y[train])
# predict probabilities for training set
predicted = model.predict(X[train])
predicted_report = classification_report(Y[train], predicted)
print(predicted_report)
# accuracy: (tp + tn) / (p + n)
accuracy = accuracy_score(Y[train], predicted)#accuracy_score(Y[train], yhat_classes)