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
9187c75f
Commit
9187c75f
authored
Jul 09, 2018
by
Guolin Ke
Browse files
fix alpha checking
parent
614f69d4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
3 deletions
+1
-3
docs/Parameters.rst
docs/Parameters.rst
+1
-1
include/LightGBM/config.h
include/LightGBM/config.h
+0
-1
src/io/config_auto.cpp
src/io/config_auto.cpp
+0
-1
No files found.
docs/Parameters.rst
View file @
9187c75f
...
...
@@ -677,7 +677,7 @@ Objective Parameters
- might be useful in case of large-range labels
- ``alpha``, default = ``0.9``, type = double, constraints: ``
0.0 <
alpha
< 1
.0``
- ``alpha``, default = ``0.9``, type = double, constraints: ``alpha
> 0
.0``
- used only in ``huber`` and ``quantile`` ``regression`` applications
...
...
include/LightGBM/config.h
View file @
9187c75f
...
...
@@ -615,7 +615,6 @@ public:
bool
reg_sqrt
=
false
;
// check = >0.0
// check = <1.0
// desc = used only in ``huber`` and ``quantile`` ``regression`` applications
// desc = parameter for `Huber loss <https://en.wikipedia.org/wiki/Huber_loss>`__ and `Quantile regression <https://en.wikipedia.org/wiki/Quantile_regression>`__
double
alpha
=
0.9
;
...
...
src/io/config_auto.cpp
View file @
9187c75f
...
...
@@ -446,7 +446,6 @@ void Config::GetMembersFromString(const std::unordered_map<std::string, std::str
GetDouble
(
params
,
"alpha"
,
&
alpha
);
CHECK
(
alpha
>
0.0
);
CHECK
(
alpha
<
1.0
);
GetDouble
(
params
,
"fair_c"
,
&
fair_c
);
CHECK
(
fair_c
>
0.0
);
...
...
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