I've been working out some vglm() model in R. When I do this:
fit <- vglm(label~.-index, family=multinomial, data=train)
I get an error as below.
Error in if (min(ans) == 0 || max(ans) == 1) warning("fitted probabilities numerically 0 or 1 occurred") : missing value where TRUE/FALSE needed
I have absolutely no idea what the matter is and how to fix it.
And I've tried this as well
fit <- glm(label~.-index, family=multinomial, data=train)
And I get another error which I can't figure out either. Thanks.
Error: $ operator not defined for this S4 class