0.1.0 • Published 7 years ago

ml-preprocess v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

preprocess

NPM version build status Test coverage David deps npm download

Preprocess functions to improve the representation and quality of data.

Installation

$ npm install --save ml-preprocess

Usage

import {normal} from 'ml-preprocess';

// vectors
let vector = [1000, 2000, 3000];
normal(vector) == [-1, 0, 1];

// matrices
let matrix = [
    [2000, 1000, 3000],
    [3000, 2000, 1000],
    [1000, 1000, 1000]
];
normal(matrix) == [
    [0, -1, 1],
    [1, 0, -1],
    [0, 0, 0]
];

Or test it in Runkit

API Documentation

License

MIT