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

Fix bug bash of import data feature #1009

Merged
merged 4 commits into from
Apr 24, 2019
Merged

Conversation

PurityFan
Copy link
Contributor

Solution: add a conversion function to convert the parameter into an acceptable format in TPE

@@ -139,6 +139,27 @@ def json2vals(in_x, vals, out_y, name=ROOT):
for i, temp in enumerate(in_x):
json2vals(temp, vals[i], out_y, name + '[%d]' % i)

def nni_params2tuner_params(in_x, parameter):
Copy link
Contributor

Choose a reason for hiding this comment

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

the name of this function is a little weird? why we need the prefix "nni"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also confuse the name of this function. This function converts the form of hyperparameters in NNI into the form in TPE tuner. Do you have any suggestions for the name of this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rename to "params2tuner_params"

@PurityFan PurityFan changed the title Fix import data in TPE tuner Fix bug bash of import data feature Apr 24, 2019
@QuanluZhang QuanluZhang self-requested a review April 24, 2019 09:51
@SparkSnail SparkSnail merged commit 4bc204b into microsoft:v0.7 Apr 24, 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.

4 participants