From c03f111ae6eac7b5b6ac2ad4635603eededcb6a3 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 17 Dec 2015 15:41:45 +0100 Subject: fix oov bug, better/fixed known rule handling --- index.php | 3 +-- js/lfpe.js | 4 ++-- server.rb | 25 ++++++++++++++++++------- views/debug.haml | 7 +++++-- 4 files changed, 26 insertions(+), 13 deletions(-) diff --git a/index.php b/index.php index be71c70..7ef8562 100644 --- a/index.php +++ b/index.php @@ -34,8 +34,7 @@ - - +

diff --git a/js/lfpe.js b/js/lfpe.js index 9185018..d8f45d0 100644 --- a/js/lfpe.js +++ b/js/lfpe.js @@ -205,8 +205,8 @@ function Next() var src = []; var tgt = []; for (var i=0; i "/shutdown", :href => "#controls"} Initiate shutdown %h3 Learning rate - %p Default for dense features: 0.001, for sparse features: 1.0e-05 + %p Default for dense features: 1.0e-05, for sparse features: 1.0e-05 %select - [1000,100,10,1,0.1,0.01,0.001,0.0001,0.00001,0.000001,0.0000001,0.00000001,0.000000001,0.0000000001].each do |i| %option.ajax{:value => i, :tgt => "/set_learning_rate/#{i}"} #{i} @@ -120,7 +120,7 @@ %h2#rules New & known rules %pre #{additional_rules.join("\n")} %h3 - Rejected [known] rules + Known rules %pre #{rejected_rules.join("\n")} %p %a{ :href => "#" } ^ up @@ -148,6 +148,9 @@ - if [9,89].include? j %hr %h3 Weight updates + %p Raw update: #{pairwise_ranking_data["update_raw"]} + /=%p Update (learning rates applied):
#{pairwise_ranking_data["update"]}
+ /=- "#{pairwise_ranking_data["update"]}" %table %tr %th Feature -- cgit v1.2.3