Open edphn opened 2 years ago
What do you expect as a result with this edge case? There are infinite solutions that fulfill the input data.
Shouldn't it be just 3, MLR for the same inputs and outputs (just wrapped in array) returns nearly 3?
I think it works in MLR because the intercept
option is true
by default. Unfortunately, I don't remember exactly what it means and how it could translate to SLR.
Hello @jobo322, do you have an opinion on this issue?
What do you expect as a result with this edge case? There are infinite solutions that fulfill the input data.
I also agree with you, it has no sense to give an answer for this case, maybe both should throw on this cardinality
I'm reimplementing my algorithm from MLR into SLR (I don't need multiple params anymore) and I see that SLR is returning
NaN
when inputs & outputs are arrays of 1-element. The old implementation with MLR was producing proper results.Output: