Skip to content

Commit

Permalink
[docs] added aliases for MAPE and MAP (#1204)
Browse files Browse the repository at this point in the history
* added cross-entropy into Features

* added aliases
  • Loading branch information
StrikerRUS committed Jan 18, 2018
1 parent a6ff2c7 commit 3dc5716
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion docs/Features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ Support following application:

- multi classification

- cross-entropy

- lambdarank, the objective function is lambdarank with NDCG

Support following metrics:
Expand Down Expand Up @@ -221,7 +223,7 @@ Support following metrics:

- MAPE

- kullback Leibler
- Kullback-Leibler

For more details, please refer to `Parameters <./Parameters.rst#metric-parameters>`__.

Expand Down
6 changes: 3 additions & 3 deletions docs/Parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Core Parameters

- ``quantile``, `Quantile regression`_

- ``mape``, `MAPE loss`_
- ``mape``, `MAPE loss`_, alias=\ ``mean_absolute_percentage_error``

- ``binary``, binary `log loss`_ classification application

Expand Down Expand Up @@ -570,7 +570,7 @@ Metric Parameters

- ``quantile``, `Quantile regression`_

- ``mape``, `MAPE loss`_
- ``mape``, `MAPE loss`_, alias=\ ``mean_absolute_percentage_error``

- ``huber``, `Huber loss`_

Expand All @@ -580,7 +580,7 @@ Metric Parameters

- ``ndcg``, `NDCG`_

- ``map``, `MAP`_
- ``map``, `MAP`_, alias=\ ``mean_average_precision``

- ``auc``, `AUC`_

Expand Down
2 changes: 1 addition & 1 deletion src/metric/metric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Metric* Metric::CreateMetric(const std::string& type, const MetricConfig& config
return new AUCMetric(config);
} else if (type == std::string("ndcg")) {
return new NDCGMetric(config);
} else if (type == std::string("map")) {
} else if (type == std::string("map") || type == std::string("mean_average_precision")) {
return new MapMetric(config);
} else if (type == std::string("multi_logloss")) {
return new MultiSoftmaxLoglossMetric(config);
Expand Down

0 comments on commit 3dc5716

Please sign in to comment.