Skip to content

Commit

Permalink
Fixed gradient boosting classifier converter mismatch on binary datas…
Browse files Browse the repository at this point in the history
…et (#230)
  • Loading branch information
Prabhat committed Aug 8, 2019
1 parent d026f89 commit 160200e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skl2onnx/operator_converters/gradient_boosting.py
Expand Up @@ -35,8 +35,7 @@ def convert_sklearn_gradient_boosting_classifier(scope, operator, container):
if op.n_classes_ == 2:
# class_prior_ was introduced in scikit-learn 0.21.
if hasattr(op.init_, 'class_prior_'):
base_values = op.init_.class_prior_
assert base_values.shape == (2, )
base_values = [op.init_.class_prior_[0]]
else:
base_values = [op.init_.prior]
if op.loss == 'deviance':
Expand Down

0 comments on commit 160200e

Please sign in to comment.