gplearn is a machine learning library for genetic programming with symbolic regression. It is an extension of scikit-learn, so adding the tag [scikit-learn] may be appropriate too.
Questions tagged [gplearn]
10 questions
7
votes
2 answers
How to export the output of gplearn as a sympy expression or some other readable format?
As much as this may sound like a simple task, I have not encountered a way to do it though the documentation.
After running an arbitrary routine (such as one of these examples, I get something like
>>> print(est_gp)
sqrt(div(add(1.000,…

Vinícius Godim
- 217
- 1
- 8
3
votes
2 answers
How can I select features for Symbolic Regression
How can I select features for Symbolic Regression ?
I have 30 features, I want to use only the most sensitive features for Symbolic Regression.
As an example, this dataset can be used which is similar to my dataset.…

Roman
- 3,007
- 8
- 26
- 54
3
votes
0 answers
gplearn library for generating new lines of data from given dataset
I am using gplearn library (genetic programming) for generating new rules from the given dataset. Currently I have 11 rows of data with 24 columns(features) that I give as input to the SymbolicRegressor method to get new rules. However, I am only…

Jaimin
- 39
- 3
2
votes
0 answers
How can I loop in a symbolic regression training?
I'm trying to obtain an equation that explains the convergence of a physics equation. I have a lot of data on equations and I would like to find a similar behavior for all since they mean the same thing but with different parameters. In order to do…

giovasbr
- 21
- 3
1
vote
0 answers
New features generated from SymbolicTransformer do not match the rule?
I have same features.I put them into SymbolicTransformer, fit.
This is the result of fit :
[sqrt(X145),
log(div(add(div(div(X270, X568), sub(X177, X147)), neg(sqrt(X3))), sqrt(div(log(X240), sub(X32, X481))))),
blablabla...]
The column of…

Anna
- 261
- 1
- 2
- 12
0
votes
0 answers
How to access individual's structure in GPLearn fitness function?
I'm trying to implement a variation of the Iterative Structure-Based Algorithm (ISBA) concept to create a structure-based GP in GPLearn. Specifically, I'm trying to implement a penalty for excessive similarity to past populations in the fitness…

TangerineZA
- 1
- 2
0
votes
1 answer
Genetic Programming, On-line Learning, gplearn
I recently discovered the GP and find it fascinating. To explicitly learn the mathematical expression is quite different from the implicit learning neural networks do! I'm interested in how GP works with on-line learning, and I imagine since there…

user1723196
- 125
- 1
- 10
0
votes
1 answer
How to ensure the output of _best_programs of SymbolicTransformer of gplearn is different?
I am using the SymbolicTransformer of gplearn to generate some automated features. The issue is, when I inspect the expression of the features via looking at _best_programs after fitting, I find that most of the features have the same expression. I…

azhe
- 1
- 1
0
votes
1 answer
Install gplearn
I try to install GPLearn to run in Python.
I have used pip to install GPLearn by the command:
pip install gplearn
Everything seems to work fine
When starting a new python project in VS2019 and running the code
import gplearn
print('ok')
This gives…

user1590336
- 109
- 1
- 9
0
votes
2 answers
Y_train values for symbolicRegressor
I split my dataset in X_train, Y_train, X_test and Y_test, and then I used the symbolicRegressor...
I've already convert the string values from Dataframe in float values.
But by applying the symbolicRegressor I get this error:
ValueError: could…

Plop
- 35
- 1
- 1
- 5