Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/search
diff options
context:
space:
mode:
authortatiana-yan <tatiana.kondakova@gmail.com>2018-07-03 17:12:41 +0300
committermpimenov <mpimenov@users.noreply.github.com>2018-07-03 17:18:55 +0300
commit4c7e19e2d57e4d30bb410f5186c276efb4297a33 (patch)
tree7cdd4e60e8dbbf92c57a1844c6b1a3768bdd07c2 /search
parent9e773974d5e6547bdc4ed81a10d0870456191b28 (diff)
[search] New ranking model weights
Diffstat (limited to 'search')
-rw-r--r--search/ranking_info.cpp30
1 files 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)