-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
predict_type="prob" does not work with out_features=1 #374
Comments
Thanks again, I missed that we make this assumption here as well! Maybe to understand a bit better where you are coming from: |
But I think you are right that we should have different output heads for binary classification.
|
using cross-entropy loss with output dim p=2 is not equivalent because in that case you have 2x the number of parameters to learn in the last layer. |
Hi @sebffischer I expected that I should be able to use measures to evaluate predictions, for binary classification with a torch learner with out_features=1. Here is an example adapted from #373 (thanks!)
The code above has predict_type="prob" and out_features=1 so I am getting the following error on current main
The error happens because the torch model outputs only one column, but some later code assumes there are two.
I hacked a solution that fixes this (see below), and I will file a PR.
The text was updated successfully, but these errors were encountered: