optimized-svm 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- optimized_svm/__init__.py +38 -0
- optimized_svm/estimators.py +735 -0
- optimized_svm/hypergradient.py +153 -0
- optimized_svm/kernels.py +63 -0
- optimized_svm/linalg.py +24 -0
- optimized_svm/losses.py +176 -0
- optimized_svm/problem.py +99 -0
- optimized_svm/smooth_max.py +90 -0
- optimized_svm/training.py +258 -0
- optimized_svm/validation.py +76 -0
- optimized_svm-0.1.0.dist-info/METADATA +131 -0
- optimized_svm-0.1.0.dist-info/RECORD +14 -0
- optimized_svm-0.1.0.dist-info/WHEEL +4 -0
- optimized_svm-0.1.0.dist-info/licenses/LICENSE +28 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Support vector machines with hyperparameters optimized by exact gradients.
|
|
2
|
+
|
|
3
|
+
The training problem is solved by SMO (``smo_solver``) followed by a semismooth Newton method;
|
|
4
|
+
regularization and kernel scalings are tuned by minimising a cross-validation error whose
|
|
5
|
+
gradient is obtained from the implicit function theorem (Strasdat, Ch. 8 and 9).
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .estimators import OptimizedSVC, OptimizedSVR, SmoothSVC, SmoothSVR
|
|
9
|
+
from .hypergradient import cv_error_and_gradient, fold_error_and_gradient
|
|
10
|
+
from .losses import (
|
|
11
|
+
ApproxPoissonLoss,
|
|
12
|
+
EpsilonInsensitiveLoss,
|
|
13
|
+
HingeLoss,
|
|
14
|
+
PoissonLoss,
|
|
15
|
+
SquaredLoss,
|
|
16
|
+
)
|
|
17
|
+
from .problem import TrainingProblem
|
|
18
|
+
from .training import Solution, newton, train
|
|
19
|
+
|
|
20
|
+
__version__ = "0.1.0"
|
|
21
|
+
|
|
22
|
+
__all__ = [
|
|
23
|
+
"ApproxPoissonLoss",
|
|
24
|
+
"EpsilonInsensitiveLoss",
|
|
25
|
+
"HingeLoss",
|
|
26
|
+
"OptimizedSVC",
|
|
27
|
+
"OptimizedSVR",
|
|
28
|
+
"PoissonLoss",
|
|
29
|
+
"SmoothSVC",
|
|
30
|
+
"SmoothSVR",
|
|
31
|
+
"Solution",
|
|
32
|
+
"SquaredLoss",
|
|
33
|
+
"TrainingProblem",
|
|
34
|
+
"cv_error_and_gradient",
|
|
35
|
+
"fold_error_and_gradient",
|
|
36
|
+
"newton",
|
|
37
|
+
"train",
|
|
38
|
+
]
|