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
c184852b
Unverified
Commit
c184852b
authored
Jun 20, 2018
by
Guolin Ke
Committed by
GitHub
Jun 20, 2018
Browse files
fix #1461
parent
277f7e47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/objective/objective_function.cpp
src/objective/objective_function.cpp
+2
-0
No files found.
src/objective/objective_function.cpp
View file @
c184852b
...
@@ -73,6 +73,8 @@ ObjectiveFunction* ObjectiveFunction::CreateObjectiveFunction(const std::string&
...
@@ -73,6 +73,8 @@ ObjectiveFunction* ObjectiveFunction::CreateObjectiveFunction(const std::string&
return
new
CrossEntropy
(
strs
);
return
new
CrossEntropy
(
strs
);
}
else
if
(
type
==
std
::
string
(
"xentlambda"
)
||
type
==
std
::
string
(
"cross_entropy_lambda"
))
{
}
else
if
(
type
==
std
::
string
(
"xentlambda"
)
||
type
==
std
::
string
(
"cross_entropy_lambda"
))
{
return
new
CrossEntropyLambda
(
strs
);
return
new
CrossEntropyLambda
(
strs
);
}
else
if
(
type
==
std
::
string
(
"mean_absolute_percentage_error"
)
||
type
==
std
::
string
(
"mape"
))
{
return
new
RegressionMAPELOSS
(
strs
);
}
else
if
(
type
==
std
::
string
(
"gamma"
))
{
}
else
if
(
type
==
std
::
string
(
"gamma"
))
{
return
new
RegressionGammaLoss
(
strs
);
return
new
RegressionGammaLoss
(
strs
);
}
else
if
(
type
==
std
::
string
(
"tweedie"
))
{
}
else
if
(
type
==
std
::
string
(
"tweedie"
))
{
...
...
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