Skip to main content

Least Squares Support Vector Regression with optimized hyperparameters

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optimized_lssvr-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

optimized_lssvr-0.0.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file optimized_lssvr-0.0.2.tar.gz.

File metadata

  • Download URL: optimized_lssvr-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for optimized_lssvr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7efc5e5625dac1534dc5aaaddc9cfc4df357ecb22b60cf58eed3101d923006ba
MD5 015f87a54c397cf7541ae8316e7403d5
BLAKE2b-256 0277f60c9ea234bcf1af719586515c72517427e3d911c4f262ce25a0e999db58

See more details on using hashes here.

File details

Details for the file optimized_lssvr-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for optimized_lssvr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e70c4f122116304522f189dfc361cc6d23d3135dafb06a6ef7eb3db79de599dc
MD5 6c77c81140c46c2d2b462b6a31d0121c
BLAKE2b-256 c145283ace19ce47bb5cb636d5c28e8cf898305e2c541039c3adf4ecbf3e723d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page