-
Notifications
You must be signed in to change notification settings - Fork 1.8k
change quniform/qloguniform style in GridSearch to conform with other tuners #1379
Conversation
Note that q should be at least 2. | ||
It will be sampled in a way that the first sampled value is 'low', and each of the following values is (high-low)/q larger that the value in front of it. | ||
Type 'quniform' will receive three values [low, high, q], where [low, high] specifies a range and 'q' specifies the interval | ||
It will be sampled in a way that the first sampled value is 'low', and each of the following values is 'interval' larger that the value in front of it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
larger than
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
if param_type == 'qloguniform': | ||
param_value[:2] = np.log(param_value[:2]) | ||
return list(np.exp(self._parse_quniform(param_value))) | ||
if param_type in ['quniform', 'qloguniform']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot deal with quniform and qloguniform in the same way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the difference ?
please update Grid Search in BuiltinTuner.md |
updated |
new modif:
|
|
||
Type 'qloguniform' behaves like 'quniform' except that it will first change the range to [log(low), log(high)] | ||
and sample and then change the sampled value back. | ||
Type 'randint' gives all possible intergers in range(low, high). Note that 'high' is not included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
range(low, high) => [low, high), more clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
looks good |
issue #1335