Skip to content

Naive Bayes slow prediction #1010

@jxu

Description

@jxu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions