0.3.1 • Published 5 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.
trainwrites over the given file path with a linear regression model fitted to the provided input and output data arrays.predictreturns the output of the given model's equation with the provided input data.
Usage
Requires Python 3 and sklearn:
pip3 install sklearnInstallation
Install from npm:
npm install linear-trainer --saveDevelopment setup
After cloning and cding to the repo, download the Python code:
git submodule update --init --recursiveTo lint, format, and run unit tests:
npm install
npm run testLicense
Distributed under the MIT license. See LICENSE for more information.