Am 28.10.2011 16:03, schrieb Gael Varoquaux:
> On Fri, Oct 28, 2011 at 10:01:11AM -0400, Alexandre Gramfort wrote:
>> class SingleSplit?
>> cv = SingleSplit(X_train, y_train, X_test, y_test) ?
> This API cannot work, as the cross-validation object is supposed to
> return indices and thus should be applied to concatenated train and test
> data.
Why can't the SingleSplit module return indices in the combined
dataset? I just return np.hstack([[True]*X_train.size[0], 
[False]*X_test.size[0]])
and the other way around for the "test" part of the batch.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to