ml-preprocess

0.1.0 • Public • Published

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

/ml-preprocess/

    Package Sidebar

    Install

    npm i ml-preprocess

    Weekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • mljs-bot
    • stropitek
    • targos
    • lpatiny
    • maasencioh