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,