Ambrosys / glyph

a python 3 library based on deap providing abstraction layers for symbolic regression problems.
GNU Lesser General Public License v3.0
93 stars 16 forks source link

Higher-level API #66

Open danuker opened 4 years ago

danuker commented 4 years ago

Hello,

I would like to thank you for this amazing project! However, I want to ask if you have thought about a higher-level API, such as classifiers and regressors similar to scikit-learn with fit and predict?

I found this idea in the gplearn project, which also does symbolic regression.

While your API looks very flexible, it also looks like it is quite verbose for a new and "light" user like me.

Would you be open to a pull request from me, which would let people just create a regressor with given settings (such as population, generations, allowed primitives), and call fit and predict on it, similar to gplearn?

Ohjeah commented 4 years ago

Hi @danuker,

thank you for your interest in glyph.

Indeed the project lacks an interface compatible with sklearn. I'd be delighted to review a pull request and certainly willing to discuss some design choices which limit the API while keeping it powerful.