Skip to content

Commit b5a2f36

Browse files
committed
fix a bug in the discrete optimization
1 parent 4fa69c5 commit b5a2f36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ZOOclient/algos/racos/racos_classification.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ function mixed_classification(classifier)
108108
if delete != 0
109109
splice!(index_set, pos)
110110
end
111+
if length(index_set) == 0
112+
push!(index_set, k)
113+
end
111114
end
112115
end
113116
set_uncertain_bit!(classifier, index_set)

0 commit comments

Comments
 (0)