You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to use perf_mddsPLS or mddsPLS with mode = "logit", y has to be a factor, it doesn't work with 1/0 as numeric. Instead it throws the cryptic error: Error in newY[i_new] <- as.character(RES$y) : replacement has length zero
It would be great if you could add it to the documentation that one has to use factors. Also, you could maybe add an input check to give more helpful error messages.
The text was updated successfully, but these errors were encountered:
Hello Jonas,
You are right about these points, I will modify as soon as possible.
Have a good day,
Hadrien
Le dim. 17 mai 2020 17:13, jonas-hag <notifications@github.com> a écrit :
If you want to use perf_mddsPLS or mddsPLS with mode = "logit", y has to
be a factor, it doesn't work with 1/0 as numeric. Instead it throws the
cryptic error: Error in newY[i_new] <- as.character(RES$y) : replacement
has length zero
It would be great if you could add it to the documentation that one has to
use factors. Also, you could maybe add an input check to give more helpful
error messages.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACG33PBIGC6VWEHBRVTWW4LRR75J7ANCNFSM4NDNT4TQ>
.
If you want to use
perf_mddsPLS
ormddsPLS
withmode = "logit"
,y
has to be a factor, it doesn't work with 1/0 as numeric. Instead it throws the cryptic error:Error in newY[i_new] <- as.character(RES$y) : replacement has length zero
It would be great if you could add it to the documentation that one has to use factors. Also, you could maybe add an input check to give more helpful error messages.
The text was updated successfully, but these errors were encountered: