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

Add nnictl ut #2912

Merged
merged 42 commits into from
Sep 28, 2020
Merged

Add nnictl ut #2912

merged 42 commits into from
Sep 28, 2020

Conversation

SparkSnail
Copy link
Contributor

@SparkSnail SparkSnail commented Sep 21, 2020

No description provided.

SparkSnail added 30 commits May 29, 2020 17:02
@QuanluZhang QuanluZhang mentioned this pull request Sep 21, 2020
79 tasks
@@ -0,0 +1,50 @@

Copy link
Contributor

Choose a reason for hiding this comment

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

extra line (or missing license)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

add licence

responses.GET, 'http://localhost:8080/api/v1/nni/trial-jobs',
json=[{"id":"GPInz","status":"SUCCEEDED","hyperParameters":["{\"parameter_id\":0, \
\"parameter_source\":\"algorithm\",\"parameters\":{\"C\":0.8748364659110364, \
\"kernel\":\"linear\",\"degree\":1,\"gamma\":0.040451413392113666,\"coef0 \":0.040353532973662266}, \
Copy link
Contributor

Choose a reason for hiding this comment

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

I remember the extra space in coef0 has been removed in another PR?

Copy link
Contributor Author

@SparkSnail SparkSnail Sep 21, 2020

Choose a reason for hiding this comment

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

updated,

@SparkSnail SparkSnail closed this Sep 21, 2020
@SparkSnail SparkSnail reopened this Sep 21, 2020
@@ -9,8 +9,8 @@

class Config:
'''a util class to load and save config'''
def __init__(self, file_path):
config_path = os.path.join(NNICTL_HOME_DIR, str(file_path))
def __init__(self, file_path, home_dir = NNICTL_HOME_DIR):
Copy link
Contributor

Choose a reason for hiding this comment

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

better to remove spaces around = for default values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated, seems pylint didn't check this

def __init__(self):
os.makedirs(NNICTL_HOME_DIR, exist_ok=True)
self.experiment_file = os.path.join(NNICTL_HOME_DIR, '.experiment')
def __init__(self, home_dir = NNICTL_HOME_DIR):
Copy link
Contributor

Choose a reason for hiding this comment

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

remove spaces around =

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@SparkSnail SparkSnail merged commit 5d7c1cd into microsoft:master Sep 28, 2020
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