Getting Started
Getting Started with ml
Getting Started
Install
npm i --save @kanaries/ml
Usage
import { Ensemble } from '@kanaries';
const iForest = new Ensemble.IsolationForest();
const X = [[-1.1], [0.3], [0.5], [100]];
iForest.fit(X);
const result = iForest.predict([[0.1], [0], [90]]);
// [0, 0, 1]