ComplementNBClassifier
ComplementNBClassifier
A model type for constructing a Complement naive Bayes classifier, based on MLJScikitLearnInterface.jl, and implementing the MLJ model interface.
From MLJ, the type can be imported using
ComplementNBClassifier = @load ComplementNBClassifier pkg=MLJScikitLearnInterface
Do model = ComplementNBClassifier()
to construct an instance with default hyper-parameters. Provide keyword arguments to override hyper-parameter defaults, as in ComplementNBClassifier(alpha=...)
.
Similar to MultinomialNBClassifier
but with more robust assumptions. Suited for imbalanced datasets.