Flow
sklearn.naive_bayes.ComplementNB

sklearn.naive_bayes.ComplementNB

Visibility: public Uploaded 05-04-2023 by Takeaki Sakabe sklearn==1.2.2 numpy>=1.17.3 scipy>=1.3.2 joblib>=1.1.1 threadpoolctl>=2.0.0 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_1.2.2
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
The Complement Naive Bayes classifier described in Rennie et al. (2003). The Complement Naive Bayes classifier was designed to correct the "severe assumptions" made by the standard Multinomial Naive Bayes classifier. It is particularly suited for imbalanced data sets.

Parameters

alphaAdditive (Laplace/Lidstone) smoothing parameter (set alpha=0 and force_alpha=True, for no smoothing)default: 1.0
class_priorPrior probabilities of the classes. Not useddefault: null
fit_priorOnly used in edge case with a single class in the training setdefault: true
force_alphaIf False and alpha is less than 1e-10, it will set alpha to 1e-10. If True, alpha will remain unchanged. This may cause numerical errors if alpha is too close to 0 .. versionadded:: 1.2 .. deprecated:: 1.2 The default value of `force_alpha` will change to `True` in v1.4default: "warn"
normWhether or not a second normalization of the weights is performed. The default behavior mirrors the implementations found in Mahout and Weka, which do not follow the full algorithm described in Table 9 of the paper.default: false

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table