When you run hlint over the weightDelta function, the Eta suggestion is reduced. I read another Eta question related to this, but I cannot convey an understanding of this matter.
module StackQuestion where import qualified Data.Vector as V type Weights = V.Vector Double type LearningRate = Double weightDelta :: LearningRate -> Double -> Double -> Weights -> Weights weightDelta nry ws = V.map update ws where update w = diff * n * w diff = r - y
Every change that I try to make to "reduce" it to indicate free syntax just breaks it. Where changes should be made, and is there any intuition or trick to avoid eta's suggestions in the future?
source share