diff options
author | gebele <gebele@in-silico.ch> | 2016-02-01 10:25:32 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2016-02-01 10:25:32 +0100 |
commit | 6876709de25ca0f24f61ebbd1669867ee6922464 (patch) | |
tree | 2aff22b789eb1c828eacc2f13d8def6a76468ad2 /application.rb | |
parent | eb266fdab537922a870b7b8b87775c0922356e98 (diff) |
updated with latest/master nano-lazar reository
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb index 16985d5..3782ded 100644 --- a/application.rb +++ b/application.rb @@ -11,8 +11,8 @@ end get '/predict/?' do data = JSON.parse(File.read("./data.json")) - relevant_features = JSON.parse(File.read("./relevant-features.json")) - @example = data[data.keys.sample]["physchem"].select{|f,v| relevant_features.keys.include? f} + query_features = JSON.parse(File.read("./query-features.json")) + @example = data[data.keys.sample]["physchem"].select{|f,v| query_features.include? f} #@json_example = JSON.pretty_generate(@example) haml :predict end |