|
7 | 7 |
|
8 | 8 | import wandb
|
9 | 9 |
|
10 |
| -wandb.require("report-editing") |
11 |
| -import wandb.apis.reports as wb # noqa: E402 |
| 10 | +import wandb.apis.reports as wb # isort: skip |
| 11 | + |
12 | 12 |
|
13 | 13 | ray_info = [
|
14 | 14 | "done",
|
@@ -84,10 +84,10 @@ def log_trials(trial_path: str, project_name: str):
|
84 | 84 | def create_report(project_name, param_space, tune_config, trial_path, best_config=None):
|
85 | 85 | def get_parallel_coordinate(param_space, metric):
|
86 | 86 | column_names = list(param_space.keys())
|
87 |
| - columns = [wb.reports.PCColumn(column) for column in column_names] |
| 87 | + columns = [wb.PCColumn(column) for column in column_names] |
88 | 88 |
|
89 | 89 | return wb.ParallelCoordinatesPlot(
|
90 |
| - columns=columns + [wb.reports.PCColumn(metric)], |
| 90 | + columns=columns + [wb.PCColumn(metric)], |
91 | 91 | layout={"x": 0, "y": 0, "w": 12 * 2, "h": 5 * 2},
|
92 | 92 | )
|
93 | 93 |
|
@@ -155,7 +155,7 @@ def get_metrics_with_history(project_name, group_name, entity=None):
|
155 | 155 | get_scatter_plot(tune_config["metric"]),
|
156 | 156 | ],
|
157 | 157 | runsets=[
|
158 |
| - wb.RunSet(project=project_name).set_filters_with_python_expr( |
| 158 | + wb.Runset(project=project_name).set_filters_with_python_expr( |
159 | 159 | f'group == "{trial_path}"'
|
160 | 160 | )
|
161 | 161 | ],
|
@@ -192,7 +192,7 @@ def get_metrics_with_history(project_name, group_name, entity=None):
|
192 | 192 | wb.PanelGrid(
|
193 | 193 | panels=line_plot_panels,
|
194 | 194 | runsets=[
|
195 |
| - wb.RunSet(project=project_name).set_filters_with_python_expr( |
| 195 | + wb.Runset(project=project_name).set_filters_with_python_expr( |
196 | 196 | f'group == "{trial_path}"'
|
197 | 197 | )
|
198 | 198 | ],
|
|
0 commit comments