Curve fitting using both brute force and scipy.optimize
Project description
This is a simple script which tries to find the global minima using scipy.optimize.curve_fit as well as a parameter search over the parameter space. It first generates ntol random models, then selects ntol*returnnfactor best models and does scipy.optimize.curve_fit on all of them. It then returns the best model of them all. This script improves scipy.optimize.curve_fit in two ways - No need to give initial values and thus getting global minima instead of local minima. And second, it automatically normalize and standardizes the data.
FUTURE:
- Parallelize
- Use Genetic algorithm instead of brute-force
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
brute_curvefit-0.0.3.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for brute_curvefit-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a35149c7b54ee18c75c4f55df8e2ea3a8ebad5dea4d7a3c686c2f6af2fd4134 |
|
MD5 | 7500fba045c64c9631392b2d4e59ef09 |
|
BLAKE2b-256 | e75ca22f773609839240f657e3d5baa01f9f4d858529ad54cdecd0ec85c123cc |