質問編集履歴
1
localで試したことの追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -55,12 +55,6 @@
|
|
55
55
|
|
56
56
|
```
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
58
|
そして以下のコードを実装したところ
|
65
59
|
```python
|
66
60
|
_s=time.time()
|
@@ -97,4 +91,28 @@
|
|
97
91
|
4.436869144439697
|
98
92
|
```
|
99
93
|
|
100
|
-
こちらのエラーを解消して,図を表示する方法を教えていただけると幸いです。
|
94
|
+
こちらのエラーを解消して,図を表示する方法を教えていただけると幸いです。
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
(あまり関係ないかもしれませんが,試したことであるため追記いたします。
|
99
|
+
|
100
|
+
試しにlocal(macOS)でこちらを実行したところ
|
101
|
+
|
102
|
+
```
|
103
|
+
$ python3 evaluate.py --savedmodels=fc
|
104
|
+
Traceback (most recent call last):
|
105
|
+
File "/Users/**/exploring-generalization/src/evaluate.py", line 142, in <module>
|
106
|
+
plot_error(tr_error_list, val_error_list, x_error, xtitle, error_title)
|
107
|
+
File "/Users/**/exploring-generalization/src/utils/plot_utils.py", line 23, in plot_error
|
108
|
+
plt.legend([train, test])
|
109
|
+
File "/usr/local/lib/python3.9/site-packages/matplotlib/pyplot.py", line 2917, in legend
|
110
|
+
return gca().legend(*args, **kwargs)
|
111
|
+
File "/usr/local/lib/python3.9/site-packages/matplotlib/axes/_axes.py", line 284, in legend
|
112
|
+
handles, labels, extra_args, kwargs = mlegend._parse_legend_args(
|
113
|
+
File "/usr/local/lib/python3.9/site-packages/matplotlib/legend.py", line 1231, in _parse_legend_args
|
114
|
+
raise TypeError("A single argument passed to legend() must be a "
|
115
|
+
TypeError: A single argument passed to legend() must be a list of labels, but found an Artist in there.
|
116
|
+
```
|
117
|
+
|
118
|
+
とエラーが生じてしましました。)
|