From 1222ff3e76051cd4903bfe89a3b3d8c0a7222799 Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Tue, 21 Jun 2011 16:12:18 +0200 Subject: Fixing map values to not start from 0 --- lazar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazar.rb b/lazar.rb index 6f8f439..d692422 100644 --- a/lazar.rb +++ b/lazar.rb @@ -66,7 +66,7 @@ post '/lazar/?' do if prediction_feature.feature_type == "classification" @training_classes = training_activities.accept_values(prediction_feature.uri).sort @training_classes.each_with_index { |c,i| - lazar.value_map[i] = c + lazar.value_map[i+1] = c # don't use '0': we must take the weighted mean later. params[:value_map] = lazar.value_map } elsif prediction_feature.feature_type == "regression" -- cgit v1.2.3