Skip to content
Advertisement

Get cross validation values of each fold as dataframes

I am performing Stratified Cross validation as given below:

JavaScript

This outputs:

JavaScript

I am trying to get the split or fold as a dataframe in each iteration. May I know how to pass these index values to get the dataframes corresponding each fold?

Advertisement

Answer

JavaScript
Advertisement