Save the regression model as JSON
Seikon opened this issue · 2 comments
Seikon commented
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.
Seikon commented
@Tom-Alexander if not, I would like to contribute this libray for make it possible :)
Tom-Alexander commented
Just stringify the result:
import regression from 'regression';
const result = regression.linear([[0, 1], [32, 67], [12, 79]]);
JSON.stringify(result);