Skip to content

Commit a6771e3

Browse files
AndyShen105AndyShen105
AndyShen105
authored and
AndyShen105
committed
modify the read_libsvm_data
1 parent 9dbd1cc commit a6771e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read_libsvm_data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def parse_line_for_batch_for_libsvm(line):
2929
value = line.value.split(" ")
3030
label = []
3131
one_hot_label = []
32-
if value[0]=="+1":
32+
if value[0]=="1":
3333
one_hot_label = [1, 0]
3434
else:
3535
one_hot_label = [0, 1]

0 commit comments

Comments
 (0)