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

Show experiment name in nnictl experiment list #1726

Merged
merged 3 commits into from
Nov 11, 2019

Conversation

ultmaster
Copy link
Contributor

@ultmaster ultmaster commented Nov 11, 2019

Fix #1615. Fix #1628.

Code in nnictl could need some refactor. (Many duplicates)

experiment_information += (EXPERIMENT_DETAIL_FORMAT % (key, experiment_dict[key]['status'], experiment_dict[key]['port'],\
experiment_dict[key].get('platform'), experiment_dict[key]['startTime'], experiment_dict[key]['endTime']))
experiment_information += EXPERIMENT_DETAIL_FORMAT % (key,
experiment_dict[key].get('experimentName', 'N/A'),
Copy link
Contributor

Choose a reason for hiding this comment

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

why add a new line in 585

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To make it neat, symmetrical and beautiful.

@@ -81,6 +81,8 @@ def add_experiment(self, expId, port, time, file_name, platform):
self.experiments[expId]['status'] = 'INITIALIZED'
self.experiments[expId]['fileName'] = file_name
self.experiments[expId]['platform'] = platform
self.experiments[expId]['authorName'] = author_name
Copy link
Contributor

Choose a reason for hiding this comment

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

what is author_name used for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's an important metadata. Save it for future use. Also okay to eject. Suggestions?

Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know if it will be used in the future, do not suggest to maintain unuseful information in metadata.

@ultmaster ultmaster merged commit b37fbca into microsoft:master Nov 11, 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.

nnictl experiment list --all should show experiment name as well More information in experiment list
4 participants