rbf-dda
v0.2.0
Published
Radial Basis Function (RBF) with Dynamic Decay Adjustment (DDA) algorithm
Downloads
14
Maintainers
Readme
RBF DDA
Radial Basis Function (RBF) with Dynamic Decay Adjustment (DDA) algorithm.
Install
npm install rbf-dda
or
yarn add rbf-dda
Usage
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
NPM Statistics
Download stats for this NPM package
License
RBF DDA is open source software licensed as MIT.