alanbernstein / geofit

curve fitting for geo
0 stars 0 forks source link

Code comment "implement ransac myself", scipy cookbook code link #1

Open zunzun opened 7 years ago

zunzun commented 7 years ago

I found your code interesting, as I also write python curve fitting code. I saw in your code a comment about implementing RANSAC yourself, and after investigation I found the following scipy cookbook link which has a python file for this purpose. I thought it might be of interest to you.

http://scipy-cookbook.readthedocs.io/items/RANSAC.html

James Phillips

alanbernstein commented 7 years ago

Thanks! it looks like this project is done for now, but I'm sure I'll find a reason to use RANSAC for something else in the future.

Can I ask how you came across this repo?

zunzun commented 7 years ago

I will occasionally search github for "curve fitting" and sort by "most recently updated". I found the RANSAC idea interesting, and saw that for performance reasons it was coded to use a linear solver - which means generalized linear equations only. I have both multiprocessor parallel processing and cluster computing examples for my pyeq2 and pyeq3 curve fitting libraries on github, and it would be quite easy to have nonlinear equations with RANSAC - and decent performance - if parallel or cluster computing was used.

pyeq2 for Python 2.X: https://github.com/zunzun/pyeq2 pyeq3 for Python 3.X: https://github.com/zunzun/pyeq3

James