summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-07-05 09:01:13 +0200
committerAndreas Maunz <andreas@maunz.de>2011-07-05 09:01:13 +0200
commit624a0eaa13d0c9b14e61b7478cb7f139f08d5ecf (patch)
treed0ebccf99e5e8b36c22db519c120ea7f5ca11078
parentc8bc63180b78517c7c1886fb2c28b7ffd9ff41db (diff)
Fixed log taking
-rw-r--r--lazar.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lazar.rb b/lazar.rb
index e81c1ba..708fa56 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -154,11 +154,7 @@ post '/lazar/?' do
lazar.activities[compound] << lazar.value_map.invert[value] # insert mapped values, not originals
elsif prediction_feature.feature_type == "regression"
#never use halt in tasks, do not raise exception when, print warning instead
- if value.to_f==0
- LOGGER.warn "0 values not allowed in training dataset. log10 is calculated internally. skipping compound"
- else
- lazar.activities[compound] << value.to_f
- end
+ lazar.activities[compound] << value.to_f
end
end
end