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
Blank invalid exception while creating classifier #176
Comments
@gaetschwartz thank you for creating the issue, I'll take a look at this |
Hello everyone, this happens to me too. Follow my sample data: Q1_1,Q1_2,Q1_3,Q1_4,Q2_1,Q3_1,Q3_2,Q3_3,Q3_4,Q3_5,Q3_6,Q3_7,Q3_8,Q3_9,Q3_10,Q3_11,Q3_12,Q3_13,Q3_14,Q4_1,Q4_2,Q4_3,Q4_4,Q4_5,Q4_6,Q4_7,Q4_8,Q4_9,Q4_10,Q4_11,Q4_12,Q4_13,MORT This is my code:
This is the error message: Unhandled exception: |
@Jrcodev ok, thank you very much for the feedback, I'll fix that soon |
@gaetschwartz you're trying to use LogisticRegressor for multiclass classification problem, but LogisticRegressor can only be used for binary classification. Please use SoftmaxRegressor instead. |
@Jrcodev you need to preprocess your data first, since you have strings in your dataset. To do so please refer to https://github.com/gyrdym/ml_preprocessing library. And also you have the same problem as @gaetschwartz has - please use SoftmaxRegressor to classify your records, since you have more than two classes |
Thanks I will try this |
@Jrcodev you're welcome, don't hesitate to ask me if you face any troubles connected to data preprocessing |
I am totally new to this subject, I received a project to create classifications. In reality my data comes from firebase, I am in doubt about the json format that |
@Jrcodev |
@gyrdym Alright, correct. I was probably tired. Another thing, when creating a |
@gaetschwartz the thing is that you need to encode your target column first, since it may contain raw data (e.g. string labels of classes), but |
@gaetschwartz @Jrcodev hi everyone, is there anything I can help you with? Are the problems discussed above still relevant? |
The problem was solved |
Here is my data :
And it then throws this exception while trying try to create the classifier:
Classifier is constructed this way :
The text was updated successfully, but these errors were encountered: