Skip to main content
Module

x/simplestatistics/index.js>bayesian#train

simple statistics for node & browser javascript
Go to Latest
method bayesian.prototype.train
import { bayesian } from "https://deno.land/x/simplestatistics@v7.7.5/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