Skip to content

Commit

Permalink
fix train module typeerror
Browse files Browse the repository at this point in the history
  • Loading branch information
PengNi committed Apr 4, 2022
1 parent 84b0fd6 commit 7b18bb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ deepsignal-plant

Release
-------
0.1.6
-----
bug fixes (train module, )


0.1.5
-----
make sure results of each read be written together in call_mods' output
Expand Down
4 changes: 2 additions & 2 deletions deepsignal_plant/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def train(args):
# vprecs.append(i_precision)
# vrecas.append(i_recall)
vlosses.append(vloss.item())
vlabels_total += vlabels
vpredicted_total += vpredicted
vlabels_total += vlabels.tolist()
vpredicted_total += vpredicted.tolist()

v_accuracy = metrics.accuracy_score(vlabels_total, vpredicted_total)
v_precision = metrics.precision_score(vlabels_total, vpredicted_total)
Expand Down

0 comments on commit 7b18bb6

Please sign in to comment.