From 1ace35e84d8215cc7588e3aa7841b3ad88e7a9e5 Mon Sep 17 00:00:00 2001 From: Shaunak Kishore Date: Tue, 8 Sep 2015 00:09:44 -0400 Subject: [PATCH] Try out tweak to classifier --- lib/stroke_extractor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/stroke_extractor.js b/lib/stroke_extractor.js index 660ab963..2ca8c761 100644 --- a/lib/stroke_extractor.js +++ b/lib/stroke_extractor.js @@ -195,6 +195,10 @@ function match_corners(corners) { function run_classifier(features) { var angle_penalty = Angle.penalty(features[0]) + Angle.penalty(features[1]); var distance_penalty = features[6]/MAX_BRIDGE_DISTANCE; + if (features[0] > 0 && features[1] > 0 && + features[2] + features[3] < -0.5*Math.PI) { + angle_penalty = angle_penalty/16; + } return -(angle_penalty + distance_penalty); }