-
Notifications
You must be signed in to change notification settings - Fork 112
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
Model Showing Extra Class Label #102
Comments
@laneciar can you please tell me what your classes are and what loss function and metric are you using? |
@Cheril311 My classes are what is in the picture above, {1, 2, 3, 4, 5} are each associated with an x row, as for loss function and metric its just the default that the Random Forest model uses, I don't specify one. |
@Cheril311 Here is some source code: Random Forest, i use the rf_model for training and the second returned model for evaluating and predicting.
Training: I shuffle the x and y data so the labels are mixed up and not in order
Hope this helps, let me know if you want anything else. |
Hi Lanceciar, This class 0 is an artifact of the way classes are handled internally. This class 0 represents the out-of-vocabulary values. However, since out-of-vocabulary values are not permitted for labels, it is always 0. Thanks for the heads-up. We will resolve it :). |
Hello,
When training my model for some reason it is coming up with an additional class. For example I currently have the following as classes [1, 2, 3, 4, 5] but when analyzing the tree using plot model it shows the following:
What is class 0 and why does this show up? Obviously 0% of the dataset has it but why is it here in the first place, i also believe it shows up when outputting the summary of the model. Even when turing my y label array to a set it gives the following:
Which comes from this snippet:
Any idea whats going on?
The text was updated successfully, but these errors were encountered: