@@ -538,10 +538,9 @@ class SVC(BaseSVC):
538
538
inversely proportional to C. Must be strictly positive. The penalty
539
539
is a squared l2 penalty.
540
540
541
- kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}, default='rbf'
541
+ kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'} or callable, \
542
+ default='rbf'
542
543
Specifies the kernel type to be used in the algorithm.
543
- It must be one of 'linear', 'poly', 'rbf', 'sigmoid', 'precomputed' or
544
- a callable.
545
544
If none is given, 'rbf' will be used. If a callable is given it is
546
545
used to pre-compute the kernel matrix from data matrices; that matrix
547
546
should be an array of shape ``(n_samples, n_samples)``.
@@ -802,10 +801,9 @@ class NuSVC(BaseSVC):
802
801
<nu_svc>`) and a lower bound of the fraction of support vectors.
803
802
Should be in the interval (0, 1].
804
803
805
- kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}, default='rbf'
804
+ kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'} or callable, \
805
+ default='rbf'
806
806
Specifies the kernel type to be used in the algorithm.
807
- It must be one of 'linear', 'poly', 'rbf', 'sigmoid', 'precomputed' or
808
- a callable.
809
807
If none is given, 'rbf' will be used. If a callable is given it is
810
808
used to precompute the kernel matrix.
811
809
@@ -1067,10 +1065,9 @@ class SVR(RegressorMixin, BaseLibSVM):
1067
1065
1068
1066
Parameters
1069
1067
----------
1070
- kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}, default='rbf'
1068
+ kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'} or callable, \
1069
+ default='rbf'
1071
1070
Specifies the kernel type to be used in the algorithm.
1072
- It must be one of 'linear', 'poly', 'rbf', 'sigmoid', 'precomputed' or
1073
- a callable.
1074
1071
If none is given, 'rbf' will be used. If a callable is given it is
1075
1072
used to precompute the kernel matrix.
1076
1073
@@ -1271,10 +1268,9 @@ class NuSVR(RegressorMixin, BaseLibSVM):
1271
1268
C : float, default=1.0
1272
1269
Penalty parameter C of the error term.
1273
1270
1274
- kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}, default='rbf'
1271
+ kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'} or callable, \
1272
+ default='rbf'
1275
1273
Specifies the kernel type to be used in the algorithm.
1276
- It must be one of 'linear', 'poly', 'rbf', 'sigmoid', 'precomputed' or
1277
- a callable.
1278
1274
If none is given, 'rbf' will be used. If a callable is given it is
1279
1275
used to precompute the kernel matrix.
1280
1276
@@ -1454,10 +1450,9 @@ class OneClassSVM(OutlierMixin, BaseLibSVM):
1454
1450
1455
1451
Parameters
1456
1452
----------
1457
- kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'}, default='rbf'
1453
+ kernel : {'linear', 'poly', 'rbf', 'sigmoid', 'precomputed'} or callable, \
1454
+ default='rbf'
1458
1455
Specifies the kernel type to be used in the algorithm.
1459
- It must be one of 'linear', 'poly', 'rbf', 'sigmoid', 'precomputed' or
1460
- a callable.
1461
1456
If none is given, 'rbf' will be used. If a callable is given it is
1462
1457
used to precompute the kernel matrix.
1463
1458
0 commit comments