Git Product home page Git Product logo

hobit's Introduction

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.3-py2.py3-none-any.whl that you can find in dist folder using

pip install HOBIT-0.0.3-py2.py3-none-any.whl

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.

hobit's People

Contributors

josecelis avatar anamabo avatar harmonic-oscillator-hybrid-fit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.