summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb4
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