1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-26 13:49:14 +08:00

linear_models: update to use new mat64 API

Fixes #232
This commit is contained in:
Richard Townsend 2019-06-16 16:26:37 +01:00
parent 82e59c89f5
commit 1fd926a3d9

View File

@ -87,7 +87,7 @@ func (lr *LinearRegression) Fit(inst base.FixedDataGrid) error {
qr.RTo(&reg)
var transposed, qty mat.Dense
transposed.Clone(q.T())
transposed.CloneFrom(q.T())
qty.Mul(&transposed, observed)
regressionCoefficients := make([]float64, n)