-
Notifications
You must be signed in to change notification settings - Fork 1.8k
add python api example and update doc #3396
Conversation
@@ -13,6 +13,7 @@ scikit-learn>=0.23.2 | |||
websockets | |||
filelock | |||
prettytable | |||
ipython |
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.
what is this file used for?
|
||
.. code:: ipython3 | ||
|
||
experiment.connect(8080) |
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.
which one is correct? Experiment.connect()
?
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.
for now, experiment.connect()
.
nni/experiment/experiment.py
Outdated
Return experiment metadata with specified exp_id as a dict. | ||
|
||
Returns | ||
---------- |
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.
Returns
-------
nni/experiment/experiment.py
Outdated
@@ -204,7 +204,7 @@ def run(self, port: int = 8080, debug: bool = False) -> bool: | |||
finally: | |||
self.stop() | |||
|
|||
def connect_experiment(self, port: int): | |||
def connect(self, port: int): |
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.
suggest to decorate it with @classmethod
or @staticmethod
A jupyter notebook example about
Experiment.start()
andExperiment.connect()
.