This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
update nnicli #2713
Merged
ultmaster
merged 24 commits into
microsoft:master
from
JunweiSUN:dev-nnicli-enhancement
Aug 12, 2020
Merged
update nnicli #2713
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a2b1920
enhance nnicli, add ref to readthedoc
JunweiSUN 9c8a67f
enhance nnicli, add ref to readthedoc
JunweiSUN 4892077
enhance nnicli; add ref of nnicli
JunweiSUN dff0871
update updater.py
JunweiSUN baa5525
enhance nnicli
JunweiSUN 4cff1c5
enhance nnicli
JunweiSUN 6844e98
remove binary files
JunweiSUN 10b842a
update docs
JunweiSUN 8266390
update tests
JunweiSUN 99159ea
fix pylint error
JunweiSUN bae6522
fix typo
JunweiSUN 9db2253
Merge branch 'master' into dev-nnicli-enhancement
JunweiSUN 7fd8ef7
update nnicli
JunweiSUN f4c3b97
update nnicli
JunweiSUN 01bdd00
update nnicli
JunweiSUN b91948d
fix pylint
JunweiSUN 50f2e58
update nnicli
JunweiSUN d87387b
update tests
JunweiSUN 46d4742
update nnicli
JunweiSUN 53ecd86
update docs
JunweiSUN 7997dfb
update nnicli
JunweiSUN 8b67511
remove prefix
JunweiSUN c0c3ada
update nnicli
JunweiSUN 88cdd5c
update nnicli
JunweiSUN File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# NNI Client | ||
|
||
NNI client is a python API of `nnictl`, which implements the most commonly used commands. Users can use this API to control their experiments, collect experiment results and conduct advanced analyses based on experiment results in python code directly instead of using command line. Here is an example: | ||
|
||
``` | ||
from nnicli import NNIExperiment | ||
|
||
# create an experiment instance | ||
exp = NNIExperiment() | ||
|
||
# start an experiment, then connect the instance to this experiment | ||
# you can also use `resume_experiment`, `view_experiment` or `connect_experiment` | ||
# only one of them should be called in one instance | ||
exp.start_experiment('nni/examples/trials/mnist-pytorch/config.yml', port=9090) | ||
|
||
# update the experiment's concurrency | ||
exp.update_concurrency(3) | ||
|
||
# get some information about the experiment | ||
print(exp.get_experiment_status()) | ||
print(exp.get_job_statistics()) | ||
print(exp.list_trial_jobs()) | ||
|
||
# stop the experiment, then disconnect the instance from the experiment. | ||
exp.stop_experiment() | ||
``` | ||
|
||
## References | ||
|
||
```eval_rst | ||
.. autoclass:: nnicli.NNIExperiment | ||
:members: | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer
Experiment
instead ofNNIExperiment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Will change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.