We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
library(mboost) myiris <- as.list(iris) myiris$class <- factor(levels(iris$Species)[-nlevels(iris$Species)]) ## Now fit the linear array model mlm <- mboost(Species ~ bols(Sepal.Length, df = 2) %O% bols(class, df = 2, contrasts.arg = "contr.dummy"), data = myiris, family = Multinomial()) # works predict(mlm) # gives weird error message predict(mlm, type = "class")
If type = "class" is something we won't be able to fix, we should at least return a meaningful error message. (Quick) fix:
type = "class"
apply(predict(mlm, type = "response"),1,which.max)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If
type = "class"
is something we won't be able to fix, we should at least return a meaningful error message.(Quick) fix:
The text was updated successfully, but these errors were encountered: