Skip to content

Commit

Permalink
Update Visualizer_1_1.py (microsoft#524)
Browse files Browse the repository at this point in the history
fixed "type numpy.ndarray doesn't define __round__ method" .
Y[i]'s type is numpy.ndarray
  • Loading branch information
fancy-mit-cse authored Aug 25, 2020
1 parent 0700c88 commit c7273a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def DrawTwoCategoryPoints(X1, X2, Y, xlabel="x1", ylabel="x2", title=None, show=
assert(X1.shape[0] == X2.shape[0] == Y.shape[0])
count = X1.shape[0]
for i in range(count):
j = (int)(round(Y[i]))
j = (int)(round(Y[i,0]))
if j < 0:
j = 0
if isPredicate:
Expand Down

0 comments on commit c7273a2

Please sign in to comment.