(apply initializer name arr)
(init-weight initializer name arr)
(normal)
(normal sigma)
Initialize the weight with normal(0, sigma) sigma - Standard deviation for gaussian distribution.
Initialize the weight with normal(0, sigma) sigma - Standard deviation for gaussian distribution.
(uniform)
(uniform scale)
Initialize the weight with uniform [-scale, scale] scale - The scale of uniform distribution
Initialize the weight with uniform [-scale, scale] scale - The scale of uniform distribution
(xavier)
(xavier {:keys [rand-type factor-type magnitude :as opts]
:or {rand-type "uniform" factor-type "avg" magnitude 3}})
Initialize the weight with Xavier or similar initialization scheme rand-type - 'gaussian' or 'uniform' factor-type - 'avg' 'in' or 'out' magnitude - scale of random number range
Initialize the weight with Xavier or similar initialization scheme rand-type - 'gaussian' or 'uniform' factor-type - 'avg' 'in' or 'out' magnitude - scale of random number range
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close