Skip to main content
Module

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

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

Predict: Use an array of features with the weight array and bias to predict whether an example is labeled 0 or 1.

Parameters

features

an array of features as numbers