Skip to main content
Module

x/simplestatistics/index.js>BayesianClassifier#train

simple statistics for node & browser javascript
Latest
method BayesianClassifier.prototype.train
import { BayesianClassifier } from "https://deno.land/x/simplestatistics@v7.8.3/index.js";

Train the classifier with a new item, which has a single dimension of Javascript literal keys and values.

Parameters

item

an object with singly-deep properties

category

the category this item belongs to