-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Perceptron predict_many as bool #1473
Comments
Hi @raul-parada, The perceptron has a ´predict_proba_many´ method in order to return probabilities over a batch of input samples. Is it what you are looking for? As part of River, the perceptron is seen as a special case of logistic_regression, are you looking for at regressor which output continuous values? If you are interested in regressor then you need to switch to the MLPRegressor https://riverml.xyz/latest/api/neural-net/MLPRegressor/ |
Hi @raphaelsty, I'm looking for direct prediction values. I've already tried MLPRegressor, however, I've faced some issues (due to the input). Find a reproducible example here #1460 |
Seems like it's a problem that's come from your input that does not fit River api. When using learn_one and predict_one, your inpute features (x) should be formated as {feature_0: value_0, feature_1, value_1, .., feature_n: value_n}. Where each feature is a string and each value is a bool, an integer or a float. Your target value should be a single float (y) If you attend to use learn_many or predict_many then your features (X) should be a pandas dataframe (of floats, bools or integers) and you target (y) values a pandas series. If you share a sample of your training data (5 data points) and test data, I'll do my best to help you to fit the river API. |
Thanks! Below X and y samples
I got this error: Appreciate your help |
Hi,
Why my predict_many output is bool instead of a value using perceptron? Is it possible to change this behavior?
The text was updated successfully, but these errors were encountered: