relu
Version:
ReLU, the rectified linear unit
38 lines (28 loc) • 988 B
Markdown
[](https://travis-ci.org/kaelzhang/relu)
[](https://codecov.io/gh/kaelzhang/relu)
<!-- optional appveyor tst
[](https://ci.appveyor.com/project/kaelzhang/relu)
-->
<!-- optional npm version
[](http://badge.fury.io/js/relu)
-->
<!-- optional npm downloads
[](https://www.npmjs.org/package/relu)
-->
<!-- optional dependency status
[](https://david-dm.org/kaelzhang/relu)
-->
# relu
The rectified linear unit.
## Install
```sh
$ npm install relu
```
## Usage
```js
import relu from 'relu'
relu(-1) // 0
relu(1) // 1
```
## License
MIT