Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: xavier dupré <xavier.dupre@gmail.com>
  • Loading branch information
Sarit Ritwirune authored and sdpython committed Jul 27, 2021
1 parent b998020 commit 0275cbc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions skl2onnx/operator_converters/support_vector_machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ def convert_sklearn_svm_classifier(
# transformed_confidences = (
# sum_of_confidences / (3 * (np.abs(sum_of_confidences) + 1)))
# return votes + transformed_confidences
if list(op.classes_) != list(range(len(op.classes_))):
raise RuntimeError(
"Classes different from first n integers are not supported "
"in SVC converter.")
# if list(op.classes_) != list(range(len(op.classes_))):
# raise RuntimeError(
# "Classes different from first n integers are not supported "
# "in SVC converter.")

cst3 = scope.get_unique_variable_name('cst3')
container.add_initializer(cst3, proto_dtype, [], [3])
Expand Down

0 comments on commit 0275cbc

Please sign in to comment.