From 6876709de25ca0f24f61ebbd1669867ee6922464 Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 1 Feb 2016 10:25:32 +0100 Subject: updated with latest/master nano-lazar reository --- application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application.rb') 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 -- cgit v1.2.3