Unverified Commit 3dc5716e authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[docs] added aliases for MAPE and MAP (#1204)

* added cross-entropy into Features

* added aliases
parent a6ff2c7e
...@@ -189,6 +189,8 @@ Support following application: ...@@ -189,6 +189,8 @@ Support following application:
- multi classification - multi classification
- cross-entropy
- lambdarank, the objective function is lambdarank with NDCG - lambdarank, the objective function is lambdarank with NDCG
Support following metrics: Support following metrics:
...@@ -221,7 +223,7 @@ Support following metrics: ...@@ -221,7 +223,7 @@ Support following metrics:
- MAPE - MAPE
- kullback Leibler - Kullback-Leibler
For more details, please refer to `Parameters <./Parameters.rst#metric-parameters>`__. For more details, please refer to `Parameters <./Parameters.rst#metric-parameters>`__.
......
...@@ -72,7 +72,7 @@ Core Parameters ...@@ -72,7 +72,7 @@ Core Parameters
- ``quantile``, `Quantile regression`_ - ``quantile``, `Quantile regression`_
- ``mape``, `MAPE loss`_ - ``mape``, `MAPE loss`_, alias=\ ``mean_absolute_percentage_error``
- ``binary``, binary `log loss`_ classification application - ``binary``, binary `log loss`_ classification application
...@@ -570,7 +570,7 @@ Metric Parameters ...@@ -570,7 +570,7 @@ Metric Parameters
- ``quantile``, `Quantile regression`_ - ``quantile``, `Quantile regression`_
- ``mape``, `MAPE loss`_ - ``mape``, `MAPE loss`_, alias=\ ``mean_absolute_percentage_error``
- ``huber``, `Huber loss`_ - ``huber``, `Huber loss`_
...@@ -580,7 +580,7 @@ Metric Parameters ...@@ -580,7 +580,7 @@ Metric Parameters
- ``ndcg``, `NDCG`_ - ``ndcg``, `NDCG`_
- ``map``, `MAP`_ - ``map``, `MAP`_, alias=\ ``mean_average_precision``
- ``auc``, `AUC`_ - ``auc``, `AUC`_
......
...@@ -31,7 +31,7 @@ Metric* Metric::CreateMetric(const std::string& type, const MetricConfig& config ...@@ -31,7 +31,7 @@ Metric* Metric::CreateMetric(const std::string& type, const MetricConfig& config
return new AUCMetric(config); return new AUCMetric(config);
} else if (type == std::string("ndcg")) { } else if (type == std::string("ndcg")) {
return new NDCGMetric(config); 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); return new MapMetric(config);
} else if (type == std::string("multi_logloss")) { } else if (type == std::string("multi_logloss")) {
return new MultiSoftmaxLoglossMetric(config); return new MultiSoftmaxLoglossMetric(config);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment