Tom-Alexander/regression-js

Save the regression model as JSON

Seikon opened this issue · 2 comments

hi!

I would like to know if there is a way, once the reggresion model has filled, to save it in a persitence way (JSON format for example), out of runtime enviroment in order to use and "share knowledge" beetwen systems.

@Tom-Alexander if not, I would like to contribute this libray for make it possible :)

Just stringify the result:

import regression from 'regression';
const result = regression.linear([[0, 1], [32, 67], [12, 79]]);
JSON.stringify(result);