You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am using NNI for multi-trial NAS.
I found that NNI gives top models via export_top_models when it's done.
Is there any function to get the models with top score during experiment.run without using the dash board? (I think it could be possible by extracting info from nni-experiments trials)
The text was updated successfully, but these errors were encountered:
If you had looked at the implementation details of exp.run(), you will see:
defrun(self, port: int=8080, wait_completion: bool=True, debug: bool=False) ->bool:
""" Run the experiment. If wait_completion is True, this function will block until experiment finish or error. Return `True` when experiment done; or return `False` when experiment failed. Else if wait_completion is False, this function will non-block and return None immediately. """self.start(port, debug)
ifwait_completion:
try:
whileTrue:
time.sleep(10)
status=self.get_status()
ifstatus=='DONE'orstatus=='STOPPED':
returnTrueifstatus=='ERROR':
returnFalseexceptKeyboardInterrupt:
_logger.warning('KeyboardInterrupt detected')
finally:
self.stop()
It's just a start plus a loop of status check. You can implement your own loop and put export top models in the loop. I think that will satisfy your need.
Hi!
I am using NNI for multi-trial NAS.
I found that NNI gives top models via export_top_models when it's done.
Is there any function to get the models with top score during experiment.run without using the dash board? (I think it could be possible by extracting info from nni-experiments trials)
The text was updated successfully, but these errors were encountered: