an installable package for Hybrid fitting of Sine and Cosine functions
Project description
HOBIT: Harmonic Oscillator hyBrid fIT
Efficient fit of sine(cosine) functions using a hybrid method
HOBIT is a Python library that combines the power of Hyperopt (https://github.com/hyperopt/hyperopt) with the flexibility of Sklearn oriented to the teaching of physics that is able to fit in a very efficient way functions with the shape
f(x) = y_0 + y_1 * Sin(omega * x + phi)
f(x) = y_0 + y_1 * Cos(omega * x + phi)
whose are commonly used to describe harmonic oscillators.
Install
Install HOBIT 0.0.4
pip install HOBIT==0.0.4
Requirements
Hobit will install/update the next python libraries
- pandas>=1.1.3
- numpy>=1.19.2
- hyperopt>=0.2.7
- sklearn>=0.23.2
Get started
In the folder notebooks you will find four jupyther notebooks with the following examples:
- Fit of a Cosine function using scipy and description of the gradient descent methond.
- Fit of a Cosine function using Hyperopt package.
- Fit of a Cosine function using HOBIT package.
- Fit of a Cosine function using HOBIT package.
Detailed explanation on the usage of these codes are inside the notebooks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file HOBIT-0.0.6.tar.gz
.
File metadata
- Download URL: HOBIT-0.0.6.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e90abe09a489118c1f0e51d0ee65baaa861d1493cbc96e4649df62674da0d390 |
|
MD5 | 0f11ec35187ef2cdb476000ddca71f72 |
|
BLAKE2b-256 | f9cbbb24e54cd0cfbe10a1a8ec5b7cc7b3899628a0cba0b10be654bac4ceb8b0 |