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

WebUI has no content due to incorrect metric #2278

Closed
colorjam opened this issue Apr 8, 2020 · 2 comments
Closed

WebUI has no content due to incorrect metric #2278

colorjam opened this issue Apr 8, 2020 · 2 comments

Comments

@colorjam
Copy link
Contributor

colorjam commented Apr 8, 2020

webui_issue

Short summary about the issue/question:
metric contains str so the WebUI cannot display content. I tried to export trials by CSV type, but got the following errors:

Traceback (most recent call last):
  File "/home/chenqian/miniconda3/envs/py37/bin/nnictl", line 11, in <module>
    load_entry_point('nni', 'console_scripts', 'nnictl')()
  File "/home/chenqian/workspace/nni/build/nni_cmd/nnictl.py", line 223, in parse_args
    args.func(args)
  File "/home/chenqian/workspace/nni/build/nni_cmd/nnictl_utils.py", line 703, in export_trials_data
    formated_record = {**record['parameter'], **record['value'], **{'id': record['id']}}
TypeError: 'str' object is not a mapping

The JOSN type output file shows that there are -Infinity in the metric
image

Brief what process you are following:
I use -loss as the metric, some trials run well while the final results are-Infinity.

How to reproduce it:

nni Environment:

  • nni version:
  • nni mode(local|pai|remote):
  • OS:
  • python version:
  • is conda or virtualenv used?:
  • is running in docker?:

need to update document(yes/no):

Anything else we need to know:

@liuzhe-lz liuzhe-lz self-assigned this Apr 8, 2020
@liuzhe-lz
Copy link
Contributor

NNI v1.5 adds support for infinity and string metrics. It should be released on today or tomorrow.

NNI cannot export non-dict metrics to CSV file at this moment. You may export to JSON file instead.

@scarlett2018
Copy link
Member

Closing it as the issue is fixed in 1.5. @colorjam - please feel free to reopen if there are still issues after you try 1.5.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants