Skip to content
📈 Train Python-style linear regression models from Node.js and get useful metrics from this stateless API.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
linear-trainer-cmd @ 11889e1
.editorconfig
.gitignore
.gitmodules
LICENSE
README.md
index.js
package-lock.json
package.json
test.js

README.md

linear-trainer-node

Train Python-style linear regressions from Node.js.

NPM Version https://img.shields.io/npm/l/linear-trainer.svg

A stateless API for interacting with Python's sklearn linear regression methods from Node. It comes with two basic functions: train and predict.

  • train writes over the given file path with a linear regression model fitted to the provided input and output data arrays.
  • predict returns the output of the given model's equation with the provided input data.

Installation

npm

npm install linear-trainer --save

GitHub

npm install git+https://github.com/sgvictorino/linear-trainer-node.git --save

Development setup

To lint, format, and run unit tests:

npm install
npm run test

License

Distributed under the MIT license. See LICENSE for more information.

You can’t perform that action at this time.