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

Refactor get_current_parameter to avoid using trial._params #1458

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

ultmaster
Copy link
Contributor

Currently, there are a few usage of trial._params, which I believe is a bad practice, since the underline is a sign of "don't use it outside this module".

By making tag an optional argument, I can retrieve trial._params by using get_current_parameter. The main reason I want to do this, instead of refactor it into has_current_parameter is that, I'm currently implementing something in NAS that needs to retrieve current parameter multiple times. #1432

@QuanluZhang QuanluZhang requested review from chicm-ms, liuzhe-lz, yds05, SparkSnail and leckie-chn and removed request for leckie-chn, SparkSnail and chicm-ms August 12, 2019 07:38
@suiguoxin suiguoxin requested a review from chicm-ms August 21, 2019 02:51
@suiguoxin suiguoxin changed the base branch from master to v1.0 August 21, 2019 02:55
@suiguoxin suiguoxin self-requested a review August 21, 2019 12:34
@suiguoxin suiguoxin merged commit ea89e23 into microsoft:v1.0 Aug 21, 2019
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