BernoulliNB class

Inheritance

Constructors

BernoulliNB(List<double> priors, List<List> negProbs, List<List> delProbes, List<int> classes)
To manually instantiate the GaussianNB. The parameters are lifted directly from scikit-learn. See the attributes here: https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.BernoulliNB.html
BernoulliNB.fromMap(Map<String, dynamic> params)
factory

Properties

classes List<int>
getter/setter pair
delProbes List<List>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
negProbs List<List>
getter/setter pair
priors List<double>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromURL(String url) → dynamic
Override in all classes extending Classifier. Load a model from a URL using an HTTP request @TODO
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
predict(List<double> X) int
Implementation of sklearn.nayve_bayes.BernoulliNB.predict.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited