-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SymbolicRegressor output support for multi-dimensional y #220
Comments
The output y in example SymbolicRegressor like : So i met problem.... |
I find the from sklearn.multioutput imported MultiOutputRegressor may can solve this problem |
It looks like gplearn should be compatible with that wrapper, do you run into any issues when trying to follow the syntax in that example with your data? Or maybe a small slice of your data to test with? https://scikit-learn.org/stable/modules/generated/sklearn.multioutput.MultiOutputRegressor.html |
By using MultiOutputRegressor like this?:
Is this correct? Can run |
But if i use MultiOutputRegressor like this: est_gp.fit(train_x, train_y) then i cant use the funciton _program to get the solution. |
With this module in sklearn there will be several estimators, one for each target. You will need to access the |
Any progress in understanding how to setup having multiple outputs since this thread was last updated? |
Also requested in #218 |
No progress right now @galenseilis , going through the issue traker right now to determine what makes it to the next release though. |
My outputnode corresponds to an array, not a single value. So my y is a two-dimensional array
But when I was training, something went wrong, he told me:
ValueError: y should be a 1d array, got an array of shape (15, 1600) instead.
My output y looks like this:
[[0. 0. 0. ... 0. 0. 0.] --------> y1
[0. 0. 0. ... 0. 0. 0.] --------> y2
[0. 0. 0. ... 0. 0. 0.] --------> y3
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]
Each individual array represents an output.
So I want to ask if there is any way to solve this problem?
The text was updated successfully, but these errors were encountered: