Hi,

2012/2/23 Mathieu Blondel <[email protected]>

> On Thu, Feb 23, 2012 at 12:53 PM, Gael Varoquaux
> <[email protected]> wrote:
>
> > I don't think so. It is clearly a flaw of the current design. Anybody who
> > has an elegant solution to proposed will be greeted with much rejoicing
>
> We could add a squared_matrix=True|False option to the constructor of
> GridSearchCV or we could inspect the estimator and check if
> estimator.kernel == "precomputed"...
>

Some time ago, I had sent a quick fix using the second approach Matthieu
mentioned. I've been using it successfully in my own code for some time.

I cleaned it up a little bit and added a test. The pull request is here:
https://github.com/scikit-learn/scikit-learn/pull/649 and would have been
there a bit earlier if not for the weird DDOS attack on github...

Hope this helps,

Adrien


>
> Mathieu
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to