Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

change quniform/qloguniform style in GridSearch to conform with other tuners #1379

Merged
merged 5 commits into from
Aug 2, 2019

Conversation

suiguoxin
Copy link
Member

issue #1335

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

larger than

Copy link
Member Author

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']:
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the difference ?

@QuanluZhang
Copy link
Contributor

please update Grid Search in BuiltinTuner.md

@suiguoxin
Copy link
Member Author

please update Grid Search in BuiltinTuner.md

updated

@suiguoxin
Copy link
Member Author

new modif:

  • delete support for "qloguniform"
  • add support for "randint"


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.
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@QuanluZhang
Copy link
Contributor

looks good

@suiguoxin suiguoxin merged commit 5b62d04 into microsoft:master Aug 2, 2019
@suiguoxin suiguoxin deleted the quniform-grid branch August 2, 2019 04:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants