---
title: naiveBayesClassifier package
description: The naiveBayesClassifier package provides an implementation of a naive Bayes classifier.
url: https://docs.influxdata.com/flux/v0/stdlib/contrib/rohansreerama5/naivebayesclassifier/
estimated_tokens: 347
product: Flux
version: v0
---

# naiveBayesClassifier package

-   Flux v0.86.0+
-   View InfluxDB support

The `naiveBayesClassifier` package is a user-contributed package maintained by the [package author](#package-author-and-maintainer).

The `naiveBayesClassifier` package provides an implementation of a naive Bayes classifier. Import the `contrib/RohanSreerama5/naiveBayesClassifier` package:

```js
import "contrib/RohanSreerama5/naiveBayesClassifier"
```

Currently supports single field classification and binary data sets.

For information about demonstrating functions in this package, see the [package README on GitHub](https://github.com/influxdata/flux/blob/master/stdlib/contrib/RohanSreerama5/naiveBayesClassifier/README.md).

## Functions

-   [naiveBayesClassifier.naiveBayes()](/flux/v0/stdlib/contrib/rohansreerama5/naivebayesclassifier/naivebayes/)
