Least Squares Support Vector Regression with optimized hyperparameters
This is a simple implementation of the hyperparameter optimization approach proposed in [1].
Installation
pip install optimized-lssvr
Example
import numpy as np
from optimized_lssvr import OptimizedLSSVR
# generate example data
n, nft = 500, 5
x = np.random.rand(n, nft)
y = x[:, 0] - 5 * x[:, 1]
# create and fit model
model = OptimizedLSSVR(verbose=1)
model.fit(x, y)
print('final relative MSE:', model.relative_mse_)
print('optimized parameters:', model.params_)
More examples can be found in the examples directory.
References
[1] Fischer, A., Langensiepen, G., Luig, K., Strasdat, N., & Thies, T. (2015). Efficient optimization of hyper-parameters for least squares support vector regression. Optimization Methods and Software, 30(6), 1095-1108.
Release files for optimized-lssvr 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| optimized_lssvr-0.0.2.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optimized_lssvr-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.2 kB
Release files / optimized_lssvr-0.0.2.tar.gz
| Download URL | optimized_lssvr-0.0.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7efc5e5625dac1534dc5aaaddc9cfc4df357ecb22b60cf58eed3101d923006ba
|
|
BLAKE2b-256 checksum How to use checksums |
0277f60c9ea234bcf1af719586515c72517427e3d911c4f262ce25a0e999db58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / optimized_lssvr-0.0.2-py3-none-any.whl
| Download URL | optimized_lssvr-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e70c4f122116304522f189dfc361cc6d23d3135dafb06a6ef7eb3db79de599dc
|
|
BLAKE2b-256 checksum How to use checksums |
c145283ace19ce47bb5cb636d5c28e8cf898305e2c541039c3adf4ecbf3e723d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|