Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/simplestatistics/index.js>perceptron#predict

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