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.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

optimized_lssvr-0.0.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optimized_lssvr-0.0.1.tar.gz
  • Upload date:
  • Size: 9.1 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.1.tar.gz
Algorithm Hash digest
SHA256 e2f0240d4769c2bbc81987b84cc3564cc370e69c31c21223a80998487ed8d397
MD5 4a832f85149882be22c3a9d7a9c29d15
BLAKE2b-256 47a264d5c5701676f7dededccbde587548ea40642d59f7e6af7bbd23f7795805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for optimized_lssvr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7703c72b7d18427b1b211d3aae00717df23957b335ac0e7427ea10c6ad254bab
MD5 294438da51f24fe895e31d2cba70b7cb
BLAKE2b-256 3253670ab9700986787934753b7f4e4d45d884913c5c38523093f57cf7bb5e87

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