Skip to main content
Module

x/simplestatistics/index.js>perceptron#train

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