Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 846 Bytes

README.md

File metadata and controls

57 lines (43 loc) · 846 Bytes

📈 linear-regression

最小二乗法を使った線形回帰



🔨 使い方

lein run -m linear-regression.core test/test.csv
Learning...

Predict Function
f(x) = 2.000000000000001*X0+3.0

Example prediction
x=[0.0], pred_y=3.0, true_y=3.0

Coefficients
R^2 = 1.0

単回帰分析の場合、下記のようになります。

0,3
1,5
2,7
3,9

最後の列が出力yになります。

重回帰分析をしたい場合、下記のようになります。

0,0,3
1,1,5
2,2,7
3,3,9

テスト

lein test

🎫 LICENSE

MIT

✍ Author

PenguinCabinet