Commit 9187c75f authored by Guolin Ke's avatar Guolin Ke
Browse files

fix alpha checking

parent 614f69d4
...@@ -677,7 +677,7 @@ Objective Parameters ...@@ -677,7 +677,7 @@ Objective Parameters
- might be useful in case of large-range labels - 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 - used only in ``huber`` and ``quantile`` ``regression`` applications
......
...@@ -615,7 +615,6 @@ public: ...@@ -615,7 +615,6 @@ public:
bool reg_sqrt = false; bool reg_sqrt = false;
// check = >0.0 // check = >0.0
// check = <1.0
// desc = used only in ``huber`` and ``quantile`` ``regression`` applications // 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>`__ // 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; double alpha = 0.9;
......
...@@ -446,7 +446,6 @@ void Config::GetMembersFromString(const std::unordered_map<std::string, std::str ...@@ -446,7 +446,6 @@ void Config::GetMembersFromString(const std::unordered_map<std::string, std::str
GetDouble(params, "alpha", &alpha); GetDouble(params, "alpha", &alpha);
CHECK(alpha >0.0); CHECK(alpha >0.0);
CHECK(alpha <1.0);
GetDouble(params, "fair_c", &fair_c); GetDouble(params, "fair_c", &fair_c);
CHECK(fair_c >0.0); CHECK(fair_c >0.0);
......
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