diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2013-02-06 21:59:53 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2013-02-06 21:59:53 +0400 |
commit | 24dffec490bbba9615b6d45ca3954b17630a2747 (patch) | |
tree | fcb9b4271a497fcfc33726aa45aa488ab3c646dc | |
parent | df450f111f6b13d1356430051042f672f40ab16e (diff) |
New version.1.0.1-0
-rw-r--r-- | ConfusionMatrix.lua | 1 | ||||
-rw-r--r-- | optim-1.0.1-0.rockspec | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/ConfusionMatrix.lua b/ConfusionMatrix.lua index 3026968..cb5cea6 100644 --- a/ConfusionMatrix.lua +++ b/ConfusionMatrix.lua @@ -43,6 +43,7 @@ function ConfusionMatrix:add(prediction, target) local _,target = target_1d:max(1) self.mat[target[1]][prediction[1]] = self.mat[target[1]][prediction[1]] + 1 end + collectgarbage() -- the code above is a bit naive, and ends up allocating a lot end function ConfusionMatrix:zero() diff --git a/optim-1.0.1-0.rockspec b/optim-1.0.1-0.rockspec new file mode 100644 index 0000000..97d9490 --- /dev/null +++ b/optim-1.0.1-0.rockspec @@ -0,0 +1,28 @@ +package = "optim" +version = "1.0.1-0" + +source = { + url = "git://github.com/koraykv/optim", + tag = "1.0.1-0" +} + +description = { + summary = "An optimization library for Torch.", + detailed = [[ +This package contains several optimization routines for Torch. + ]], + homepage = "https://github.com/koraykv/optim", + license = "BSD" +} + +dependencies = { + "torch >= 7.0", + "sys >= 1.0", +} + +build = { + type = "cmake", + variables = { + LUAROCKS_PREFIX = "$(PREFIX)" + } +} |