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

github.com/torch/optim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Chaurasia <abhishek.chaurasia29@hotmail.com>2016-09-15 23:11:12 +0300
committerAbhishek Chaurasia <abhishek.chaurasia29@hotmail.com>2016-09-15 23:11:12 +0300
commit8cd8f2ec62cab763c430416aa3e9364ce72f5145 (patch)
treebeffcc5fc6b07bab20e65d8f17c9b1eafe4dbe83
parentb812d2a381162bed9f0df26cab8abb4015f47471 (diff)
Added option to set/reset displaying of plot
-rw-r--r--Logger.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/Logger.lua b/Logger.lua
index 48915ef..31928ec 100644
--- a/Logger.lua
+++ b/Logger.lua
@@ -124,8 +124,12 @@ function Logger:style(symbols)
return self
end
-function Logger:setlogscale(value)
- self.logscale = value
+function Logger:setlogscale(state)
+ self.logscale = state
+end
+
+function Logger:display(state)
+ self.showPlot = state
end
function Logger:plot(...)