This commit is contained in:
nuknal
2024-09-10 14:13:30 +08:00
parent 52638b5ffe
commit 2fcbc389c6
8 changed files with 82 additions and 32 deletions

View File

@@ -19,6 +19,12 @@ func objectiveFunc(numerator, denominator, f, latVec, lonVec, heightVec *mat.Vec
errorV := predictedV - f.AtVec(i)
errorSquared += errorV * errorV
}
// lambda := 1e-2
// coeffsSquaredError := 0.0
// for i := 0; i < 20; i++ {
// coeffsSquaredError += lambda * (numerator.AtVec(i)*numerator.AtVec(i) + denominator.AtVec(i)*denominator.AtVec(i))
// }
return errorSquared
}