| 496 | _impl = 'nu_svc' |
| 497 | |
| 498 | def __init__(self, kernel='rbf', degree=3, gamma='auto', |
| 499 | coef0=0.0, nu=0.5, tol=0.001, |
| 500 | probability=False, shrinking=False, cache_size=None, verbose=False, |
| 501 | max_iter=-1, n_jobs=-1, max_mem_size=-1, random_state=None, decision_function_shape='ovo', gpu_id=0): |
| 502 | self.decision_function_shape = decision_function_shape |
| 503 | super(NuSVC, self).__init__( |
| 504 | kernel=kernel, degree=degree, gamma=gamma, |
| 505 | coef0=coef0, C=0., nu=nu, epsilon=0., |
| 506 | tol=tol, probability=probability, class_weight=None, |
| 507 | shrinking=shrinking, cache_size=cache_size, verbose=verbose, |
| 508 | max_iter=max_iter, n_jobs=n_jobs, max_mem_size=max_mem_size, random_state=random_state, gpu_id=gpu_id |
| 509 | ) |
| 510 | |
| 511 | |
| 512 | class OneClassSVM(SvmModel): |