zzzbbx
zzzbbx

Reputation: 10131

generate a number of independent splits of dataset

when using sklearn split function, is it possible to produce k independent splits, namely, k splits that have at least one element not in common? If not, is there any other library that can be used?

Upvotes: 0

Views: 51

Answers (1)

Kyle Kastner
Kyle Kastner

Reputation: 1018

Have a look at the cross_validation module.

For what you want, KFold should do the trick.

Upvotes: 1

Related Questions