Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
3dc5716e
Unverified
Commit
3dc5716e
authored
Jan 18, 2018
by
Nikita Titov
Committed by
GitHub
Jan 18, 2018
Browse files
[docs] added aliases for MAPE and MAP (#1204)
* added cross-entropy into Features * added aliases
parent
a6ff2c7e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
docs/Features.rst
docs/Features.rst
+3
-1
docs/Parameters.rst
docs/Parameters.rst
+3
-3
src/metric/metric.cpp
src/metric/metric.cpp
+1
-1
No files found.
docs/Features.rst
View file @
3dc5716e
...
...
@@ -189,6 +189,8 @@ Support following application:
- multi classification
- cross-entropy
- lambdarank, the objective function is lambdarank with NDCG
Support following metrics:
...
...
@@ -221,7 +223,7 @@ Support following metrics:
- MAPE
-
k
ullback
Leibler
-
K
ullback
-
Leibler
For more details, please refer to `Parameters <./Parameters.rst#metric-parameters>`__.
...
...
docs/Parameters.rst
View file @
3dc5716e
...
...
@@ -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
...
...
@@ -570,7 +570,7 @@ Metric Parameters
- ``quantile``, `Quantile regression`_
- ``mape``, `MAPE loss`_
- ``mape``, `MAPE loss`_
, alias=\ ``mean_absolute_percentage_error``
- ``huber``, `Huber loss`_
...
...
@@ -580,7 +580,7 @@ Metric Parameters
- ``ndcg``, `NDCG`_
- ``map``, `MAP`_
- ``map``, `MAP`_
, alias=\ ``mean_average_precision``
- ``auc``, `AUC`_
...
...
src/metric/metric.cpp
View file @
3dc5716e
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment