0.3.1 • Published 4 years ago
linear-trainer v0.3.1
linear-trainer-node
Train sklearn linear regressions from Node.js.
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.
Usage
Requires Python 3 and sklearn
:
pip3 install sklearn
Installation
Install from npm:
npm install linear-trainer --save
Development setup
After cloning and cd
ing to the repo, download the Python code:
git submodule update --init --recursive
To lint, format, and run unit tests:
npm install
npm run test
License
Distributed under the MIT license. See LICENSE
for more information.