Skip to content

Commit

Permalink
chore: update dependencies and remove support for Node.js 6
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Node.js 6 is no longer supported.
  • Loading branch information
targos committed Jun 29, 2019
1 parent a1e5188 commit 807b41c
Show file tree
Hide file tree
Showing 10 changed files with 5,968 additions and 2,821 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["transform-es2015-modules-commonjs"]
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
4 changes: 1 addition & 3 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extends: 'eslint-config-cheminfo'
extends: cheminfo
parserOptions:
sourceType: module
env:
jest: true
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: node_js
node_js:
- 12
- 10
- 8
- 6
after_success:
- bash <(curl -s https://codecov.io/bash)
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# regression-exponential

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![npm download][download-image]][download-url]
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![npm download][download-image]][download-url]

Exponential Regression.

## Installation

`$ npm install --save ml-regression-exponential`
`$ npm i ml-regression-exponential`

## Usage

Expand All @@ -22,15 +22,15 @@ const y = [1.5, 2.5, 3.5, 5.0, 7.5];

const regression = new ExponentialRegression(x, y);

regression.A // 0.391202
regression.B // 1.579909
regression.A; // 0.391202
regression.B; // 1.579909
regression.predict(2); // 3.454825
regression.toString(3); // f(x) = 1.58 * exp(0.391 * x)
```

## License

[MIT](./LICENSE)
[MIT](./LICENSE)

[npm-image]: https://img.shields.io/npm/v/ml-regression-exponential.svg?style=flat-square
[npm-url]: https://npmjs.org/package/ml-regression-exponential
Expand Down
Loading

0 comments on commit 807b41c

Please sign in to comment.