File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 129129 :y (map first (py/->jvm (py. labels tolist)))})]
130130 (-> ds
131131 (plotly/base {:=title " Model" })
132- (plotly/layer-point {:=dataset pts :=x :x :=y :y })
133- (plotly/layer-line {:=x :x :=y :y })))))
132+ (plotly/layer-point {:=dataset pts :=x :x :=y :y :=name " data " })
133+ (plotly/layer-line {:=x :x :=y :y :=name " prediction " })))))
134134
135135
136136
148148 [{:keys [train-losses dev-losses]} smoothing-fn]
149149 (-> (tc/dataset {:x (range 1 (count train-losses)) :y (smoothing-fn train-losses)})
150150 (plotly/base {:=title " Losses" })
151- (plotly/layer-line {:=x :x :=y :y })
152- (plotly/layer-line {:=dataset (tc/dataset {:x (range 1 (count dev-losses)) :y (smoothing-fn dev-losses)}) :=x :x :=y :y })))
151+ (plotly/layer-line {:=x :x :=y :y :=name " training loss" })
152+ (plotly/layer-line {:=dataset (tc/dataset {:x (range 1 (count dev-losses)) :y (smoothing-fn dev-losses)})
153+ :=x :x :=y :y :=name " dev loss" })))
153154
154155(plot-losses result (smoothing 0.99 ))
You can’t perform that action at this time.
0 commit comments