simplebrain
A super simple way to think about machine learning
Library is in ALPHA
const lr = linearRegression; const trained_model = lr; const grade = lr; console; // 0.8
API:
linearRegression
train([{x: 1, y: 1}, ...])
=> Returns a model (If you are looking for b0 and b1 this is where to find itconsole.log(model)
)grade(model, [{x: 1, y: 1}, {x: 1, y: 2}])
=> Returns a grade / number