Re: [Scikit-learn-general] grouping samples

2013-09-01 Thread bthirion
Dear Hector, You probably want to introduce a loss function that quantifies the accuracy of the solution and try to minimize it. Then you will have to figure out how to perform some kind of generalization to new samples. Are you learning a rule that associates a with C_a ? Otherw

Re: [Scikit-learn-general] grouping samples

2013-09-01 Thread Joel Nothman
If I understand you correctly, you might be looking for SequenceKFold in Lars Buitinck's seqlearn repository: https://github.com/larsmans/seqlearn/blob/master/seqlearn/evaluation.py On Sun, Sep 1, 2013 at 5:46 AM, Hector wrote: > Hey guys, > I guess in the end this is a question about methodolo

[Scikit-learn-general] grouping samples

2013-08-31 Thread Hector
Hey guys, I guess in the end this is a question about methodology and I could write my own functions for sampling and evaluation, but I'm wondering if this problem has already been solved in scikit-learn. I have a dataset where I would like to group samples for cross-validation and evaluation becau