a456f784eda6257b73b25fc6c4ee5682dc1341f2,hpsklearn/components.py,,svc_linear,#,96

Before Change



    rval = scope.sklearn_SVC(
        kernel="linear",
        C=hp.lognormal(
            _name("C"),
            np.log(1.0),
            np.log(4.0)) if C is None else C,
        shrinking=hp_bool(
            _name("shrinking")) if shrinking is None else shrinking,
        tol=scope.inv_patience_param(
            hp.lognormal(
                _name("tol"),
                np.log(1e-3),
                np.log(10))) if tol is None else tol,
        // -- this is basically only here to prevent
        //    an infinite loop in libsvm"s solver.
        //    A more useful control mechanism might be a timer
        //    or a kill msg to a sub-process or something...
        max_iter=scope.patience_param(scope.int(
            hp.qloguniform(
                _name("max_iter"),
                np.log(100),
                np.log(10000),
                q=10,
                ))) if max_iter is None else max_iter,
        verbose=verbose,

After Change


        C=_svc_C(name) if C is None else C,
        shrinking=hp_bool(
            _name("shrinking")) if shrinking is None else shrinking,
        tol=_svc_tol(name) if tol is None else tol,
        max_iter=_svc_max_iter(name) if max_iter is None else max_iter,
        verbose=verbose,
        cache_size=cache_size,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: hyperopt/hyperopt-sklearn
Commit Name: a456f784eda6257b73b25fc6c4ee5682dc1341f2
Time: 2014-02-06
Author: james.bergstra@gmail.com
File Name: hpsklearn/components.py
Class Name:
Method Name: svc_linear


Project Name: hyperopt/hyperopt-sklearn
Commit Name: a456f784eda6257b73b25fc6c4ee5682dc1341f2
Time: 2014-02-06
Author: james.bergstra@gmail.com
File Name: hpsklearn/components.py
Class Name:
Method Name: svc_sigmoid


Project Name: hyperopt/hyperopt-sklearn
Commit Name: a456f784eda6257b73b25fc6c4ee5682dc1341f2
Time: 2014-02-06
Author: james.bergstra@gmail.com
File Name: hpsklearn/components.py
Class Name:
Method Name: svc_poly