https://github.com/mljs/preprocess
Preprocess functions to improve the representation and quality of data
https://github.com/mljs/preprocess
Last synced: 4 months ago
JSON representation
Preprocess functions to improve the representation and quality of data
- Host: GitHub
- URL: https://github.com/mljs/preprocess
- Owner: mljs
- License: mit
- Created: 2014-12-22T10:03:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-22T13:48:01.000Z (almost 8 years ago)
- Last Synced: 2025-02-05T23:39:21.768Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.67 MB
- Stars: 1
- Watchers: 13
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
# preprocess
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]Preprocess functions to improve the representation and quality of data.
## Installation
`$ npm install --save ml-preprocess`## Usage
```js
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](https://runkit.com/npm/ml-preprocess)## [API Documentation](https://mljs.github.io/preprocess/)
## License
[MIT](./LICENSE)
[npm-image]: https://img.shields.io/npm/v/ml-preprocess.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ml-preprocess
[travis-image]: https://img.shields.io/travis/mljs/preprocess/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/mljs/preprocess
[codecov-image]: https://img.shields.io/codecov/c/github/mljs/preprocess.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/mljs/preprocess
[david-image]: https://img.shields.io/david/mljs/preprocess.svg?style=flat-square
[david-url]: https://david-dm.org/mljs/preprocess
[download-image]: https://img.shields.io/npm/dm/ml-preprocess.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-preprocess