Skip to content

Commit a208e4c

Browse files
committed
temp trend disable
1 parent 3653c0b commit a208e4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

logger.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ def _save_png(self, input_path, output_path, small_batch_length, big_batch_lengt
102102
if len(batch_averages_x) > 1:
103103
plt.plot(batch_averages_x, batch_averages_y, linestyle="--", label="last " + str(big_batch_length) + " average")
104104

105-
if len(x) > 1:
106-
trend_x = x[1:]
107-
z = np.polyfit(np.array(trend_x), np.array(y[1:]), 1)
108-
p = np.poly1d(z)
109-
plt.plot(trend_x, p(trend_x), linestyle="-.", label="trend")
105+
# if len(x) > 1:
106+
# trend_x = x[1:]
107+
# z = np.polyfit(np.array(trend_x), np.array(y[1:]), 1)
108+
# p = np.poly1d(z)
109+
# plt.plot(trend_x, p(trend_x), linestyle="-.", label="trend")
110110

111111
plt.title(self.header)
112112
plt.xlabel(x_label)

0 commit comments

Comments
 (0)