-
Notifications
You must be signed in to change notification settings - Fork 106
Closed
Labels
Description
I'm not sure if this is a problem with klaR or parsnip per se, but naive bayes prediction takes a long time on a large dataset, much longer than training. It might be because of the large number of warnings generated?
> warnings()
Warning messages:
1: In FUN(X[[i]], ...) :
Numerical 0 probability for all classes with observation 1
2: In FUN(X[[i]], ...) :
Numerical 0 probability for all classes with observation 2
3: In FUN(X[[i]], ...) :
Numerical 0 probability for all classes with observation 3
etc.