Skip to main content

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)

Source distribution for optimized-lssvr 0.0.2
File Size Uploaded
optimized_lssvr-0.0.2.tar.gz 9.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for optimized-lssvr 0.0.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page