Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend unit test coverage #180

Merged
merged 28 commits into from Jun 17, 2019
Merged

Extend unit test coverage #180

merged 28 commits into from Jun 17, 2019

Conversation

xadupre
Copy link
Collaborator

@xadupre xadupre commented Jun 12, 2019

No description provided.

@@ -259,6 +259,11 @@ def _parse_sklearn_classifier(scope, model, inputs, custom_parsers=None):

if np.issubdtype(model.classes_.dtype, np.floating):
classes = np.array(list(map(lambda x: int(x), classes)))
if set(map(lambda x: float(x), classes)) != set(model.classes_):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of map(lambda(..., can't you just do x.astype(np.float)?

skl2onnx/_parse.py Outdated Show resolved Hide resolved
tests/test_algebra_onnx_operators.py Outdated Show resolved Hide resolved
@xadupre xadupre merged commit 1204066 into onnx:master Jun 17, 2019
@xadupre xadupre deleted the cov branch September 30, 2019 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants