Giter Site home page Giter Site logo

zolabar / trendpy Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 13.92 MB

Time Series Regression with Python

License: MIT License

Python 3.47% Jupyter Notebook 80.56% Procfile 0.01% Makefile 0.05% HTML 10.82% CSS 1.80% JavaScript 3.23% Batchfile 0.06%
binder fourier-transform heroku-deployment least-square-regression numpy optimization plotly regression voila-dashboard

trendpy's People

Contributors

hadamard-zweistein avatar joschua-j avatar marcus02w avatar zolabar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

trendpy's Issues

problems with trigReg function in methods.py

When testing the different regression approaches from methods.py in my local version of the TrendPy Webapp linear and polynomial worked fine. However the output of the trigReg function seems not to work correctly. Coefficients and trendline when using trigReg can be seen in the screenshot below.

trigReg_coefficients

include expReg function into methods.py

Exponential regression

f(x) = a exp(bx)

can be reduced to linear regression by taking to log (ln).

ln (f) = b*x+ln (a)

hence, expReg can be easily implemented using np.log and linReg

"freeReg" regression

Trend objects could support a SymPy based "free ansatz" regression, for example

reg = Trend(x_in, y_out, "freeReg","aarctan(bx)")

"aarctan(bx)" could be converted by SymPy to a numerical object and in combination with curve_fit from SciPy the fir could be simply done.

A function in methdods.py called freeReg(x, y, "aarctan(bx)") is the start.

double names

  • predict additionally to pred
  • coefs additionally to coef

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.