Skip to main content
Module

x/simplestatistic/src/perceptron.js>default#train

simple statistics for node & browser javascript
method default.prototype.train
import { default } from "https://deno.land/x/simplestatistic@v7.7.1/src/perceptron.js";

Train the classifier with a new example, which is a numeric array of features and a 0 or 1 label.

Parameters

features

an array of features as numbers

label

either 0 or 1