Radial Basis Function (RBF) with Dynamic Decay Adjustment (DDA) algorithm.
npm install rbf-dda
or
yarn add rbf-dda
const RBFDDA = require("rbf-dda");
const points = [
[5.1, 3.5, 1.4, 0.2],
[5.5, 2.6, 4.4, 1.2],
[4.7, 3.2, 1.3, 0.2],
[7.1, 3.0, 5.9, 2.1],
[6.3, 2.5, 4.9, 1.5]
];
const classes = [
"Iris-setosa",
"Iris-versicolor",
"Iris-setosa",
"Iris-virginica",
"Iris-versicolor"
];
const rbfdda = new RBFDDA(points, classes);
rbfdda.training();
const classValue = rbfdda.classification([5.8, 2.6, 4.0, 1.2]);
console.log(classValue); // => Iris-versicolor
Download stats for this NPM package
RBF DDA is open source software licensed as MIT.