p3(run.go): actually call explicit least squares

This commit is contained in:
leo 2023-03-15 20:00:51 +01:00
parent 97cf99e988
commit 49359cc549
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -54,6 +54,14 @@ func run() error {
thetaT := lrls.TransposeTheta(theta)
// explicit method does not return theta and errs directly, instead
// it's computed by a Matlab script and the resulting data is saved in
// `./data`.
_, _, err = lrls.Estimate(0, data[u], data[y])
if err != nil {
return err
}
log.Printf("len(data): %d", len(data[u]))
log.Printf("means - u: %v, y: %v", meanU, meanY)