-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
In here
the code fails with
Cannot invoke "clojure.lang.IFn.invoke(Object, Object, Object, Object)" because "null" is null
The following does work:
(let [net (smile.classification.MLP. builders)]
(.setLearningRate net (smile.math.TimeFunction/linear 0.2 1000 0.1))
(.setMomentum net (TimeFunction/constant 0.2))
(.setWeightDecay net 0.1)
(dotimes [i 10] (.update net x y))
)
Very likely the
([x y builders] (mlp x y builders 10 0.1 0.0 0.0))
will not work any more neither, as it needs now TimeFunctions for the MLP params momentum and leariningRate
Metadata
Metadata
Assignees
Labels
No labels