From 4c7e19e2d57e4d30bb410f5186c276efb4297a33 Mon Sep 17 00:00:00 2001 From: tatiana-yan Date: Tue, 3 Jul 2018 17:12:41 +0300 Subject: [PATCH] [search] New ranking model weights --- search/ranking_info.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/search/ranking_info.cpp b/search/ranking_info.cpp index 57c72d8d8a..37b526de3f 100644 --- a/search/ranking_info.cpp +++ b/search/ranking_info.cpp @@ -12,26 +12,26 @@ namespace { // See search/search_quality/scoring_model.py for details. In short, // these coeffs correspond to coeffs in a linear model. -double const kDistanceToPivot = -0.2837370; +double const kDistanceToPivot = -1.0000000; double const kRank = 1.0000000; -double const kFalseCats = 0.0000000; -double const kErrorsMade = -0.0118797; +double const kFalseCats = -0.0839847; +double const kErrorsMade = 0.0066984; double const kAllTokensUsed = 0.0000000; double const kNameScore[NameScore::NAME_SCORE_COUNT] = { - -0.0995842 /* Zero */, - 0.0265404 /* Substring */, - 0.0238720 /* Prefix */, - 0.0491718 /* Full Match */ + -0.4027035 /* Zero */, + 0.1063430 /* Substring */, + 0.0661467 /* Prefix */, + 0.2302138 /* Full Match */ }; double const kType[Model::TYPE_COUNT] = { - -0.0059073 /* POI */, - -0.0059073 /* Building */, - 0.0293600 /* Street */, - 0.0254288 /* Unclassified */, - -0.1130063 /* Village */, - -0.1549069 /* City */, - 0.1656289 /* State */, - 0.0534028 /* Country */ + -0.3210718 /* POI */, + -0.3210718 /* Building */, + -0.2660116 /* Street */, + -0.3135561 /* Unclassified */, + -0.3071279 /* Village */, + 0.1013253 /* City */, + 0.3336005 /* State */, + 0.7728417 /* Country */ }; double TransformDistance(double distance)