Well you could penalize by epsilon times 1/C or something, if you want a tradeoff of complexity and accuracy.
You do have access to the estimator in the scoring.

Or you could do it manually after doing the grid-search (with refit=False).
Really, ties shouldn't happen in practice, though. How large is your dataset?


On 02/19/2015 02:23 PM, Pagliari, Roberto wrote:

With SVM, I’d really to pick the C and gamma I want when multiple pairs have the same best CV score..

*From:*Andy [mailto:t3k...@gmail.com]
*Sent:* Thursday, February 19, 2015 4:48 PM
*To:* scikit-learn-general@lists.sourceforge.net
*Subject:* Re: [Scikit-learn-general] custom scorer with parameters

Not really.
The scorer should not really know that it is inside a grid-search.
What is it you want to do?

On 02/19/2015 10:18 AM, Pagliari, Roberto wrote:

    I'd like to implement a custom score function for grid search CV.

    would it be possible to get the current best parameters from
    within the score function?




    
------------------------------------------------------------------------------

    Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server

    from Actuate! Instantly Supercharge Your Business Reports and Dashboards

    with Interactivity, Sharing, Native Excel Exports, App Integration & more

    Get technology previously reserved for billion-dollar corporations, FREE

    http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk




    _______________________________________________

    Scikit-learn-general mailing list

    Scikit-learn-general@lists.sourceforge.net  
<mailto:Scikit-learn-general@lists.sourceforge.net>

    https://lists.sourceforge.net/lists/listinfo/scikit-learn-general



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk


_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to