Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrossValidation with fixed partitions #64

Closed
owlmsj opened this issue Jan 29, 2016 · 4 comments
Closed

CrossValidation with fixed partitions #64

owlmsj opened this issue Jan 29, 2016 · 4 comments

Comments

@owlmsj
Copy link

owlmsj commented Jan 29, 2016

Hi,

already check a bunch of classes but with no luck to find an example of.

SO, is there a "ready code" to run CrossValidation that return fixed partitions?

@haifengl
Copy link
Owner

What do you mean "fixed partitions"?

@owlmsj
Copy link
Author

owlmsj commented Jan 29, 2016

"Running example" at 5-fold cross validation (partitions A,B,C,D and E = the entire dataset).

fold 1) A,B,C,D = train and E = test
fold 2) A,B,C,E = train and D = test
fold 3) A,B,D,E = train and C = test
fold 4) A,C,D,E = train and B = test
fold 5) B,C,D,E = train and A = test

Probably this is not the best explanation and it is kind of a trivial code to do. Just to know if this feature in smile is already coded or should I implement something look like and make a pull request...

@haifengl
Copy link
Owner

smile.validation.CrossValidation is for that.

@owlmsj
Copy link
Author

owlmsj commented Jan 29, 2016

My mistake (because my code was shuffling the data at the beginning). Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants