GaussianNB class
An implementation of sklearn.naive_bayes.KNeighborsClassifier
https://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.GaussianNB.html
- Inheritance
-
- Object
- Classifier
- GaussianNB
Constructors
-
GaussianNB(List<
double> classPrior, List<List> sigma, List<List> theta, 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.GaussianNB.html
-
GaussianNB.fromMap(Map<
String, dynamic> params) -
factory
Properties
-
classes
↔ List<
int> -
getter/setter pair
-
classPrior
↔ List<
double> -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sigma
↔ List<
List> -
getter/setter pair
-
theta
↔ List<
List> -
getter/setter pair
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.GaussianNB.predict.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited