Skip to content

andrelmlins/rbf-dda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RBF DDA

Radial Basis Function (RBF) with Dynamic Decay Adjustment (DDA) algorithm.

npm version License: MIT Build Status

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

NPM

License

RBF DDA is open source software licensed as MIT.