In this blog, we explore how Scipy and Hyperopt can be used to fit a harmonic signal. ![]() We explored other alternatives such as Bayesian optimization or regression and they turned out to be very good alternatives to fit data to harmonic signals. The function provided by Scipy is quite fast however, after some trials, we noticed that the user needs to have an idea of each parameter values so that the code can give a good estimate. This Python’s package has a method called optimize.curve_fit, which uses non-linear least squares to fit a function f to some input data (an example with a Sine function fit can be found here). ![]() After receiving our colleague’s email, we thought that this was a problem easy to solve with existing Python libraries like Scipy.
0 Comments
Leave a Reply. |