Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicholas-leonard <nick@nikopia.org>2015-04-20 18:47:39 +0300
committernicholas-leonard <nick@nikopia.org>2015-04-20 18:47:39 +0300
commit35cfc17ee40ceae4916b1f1754fbdb5eea10c5aa (patch)
tree08482cbafb7eb98c398982e792f2be0393ea5904 /SoftMaxTree.lua
parentb10c3aa2b51b3c6c848c4d8d2c2517ac59872269 (diff)
SoftMaxTree:parameters() returns scales and size
Diffstat (limited to 'SoftMaxTree.lua')
-rw-r--r--SoftMaxTree.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/SoftMaxTree.lua b/SoftMaxTree.lua
index e3ff61e..af4be64 100644
--- a/SoftMaxTree.lua
+++ b/SoftMaxTree.lua
@@ -232,7 +232,7 @@ function SoftMaxTree:parameters()
return {self.weight, self.bias}, {self.gradWeight, self.gradBias}
end
end
- return params, grads
+ return params, grads, {}, self.nChildNode*2
end
function SoftMaxTree:updateParameters(learningRate)