Skip to main content

an installable package for Hybrid fitting of Sine and Cosine functions

Project description

Sublime's custom image

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:

  1. Fit of a Cosine function using scipy and description of the gradient descent methond.
  2. Fit of a Cosine function using Hyperopt package.
  3. Fit of a Cosine function using HOBIT package.
  4. Fit of a Cosine function using HOBIT package.

Detailed explanation on the usage of these codes are inside the notebooks.

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

HOBIT-0.0.6.tar.gz (3.4 kB view details)

Uploaded Source

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

Hashes for HOBIT-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e90abe09a489118c1f0e51d0ee65baaa861d1493cbc96e4649df62674da0d390
MD5 0f11ec35187ef2cdb476000ddca71f72
BLAKE2b-256 f9cbbb24e54cd0cfbe10a1a8ec5b7cc7b3899628a0cba0b10be654bac4ceb8b0

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