diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-07-05 09:01:13 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-07-05 09:01:13 +0200 |
commit | 624a0eaa13d0c9b14e61b7478cb7f139f08d5ecf (patch) | |
tree | d0ebccf99e5e8b36c22db519c120ea7f5ca11078 | |
parent | c8bc63180b78517c7c1886fb2c28b7ffd9ff41db (diff) |
Fixed log taking
-rw-r--r-- | lazar.rb | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |