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

GaussianProcessRegressor with float and double in ONNX models #220

Merged
merged 78 commits into from Jul 26, 2019
Merged

GaussianProcessRegressor with float and double in ONNX models #220

merged 78 commits into from Jul 26, 2019

Conversation

xadupre
Copy link
Collaborator

@xadupre xadupre commented Jul 16, 2019

No description provided.

@xadupre xadupre changed the title [WIP] first try to produce ONNX models using doubles and not floats GaussianProcessRegressor with float and double in ONNX models Jul 17, 2019
@CLAassistant
Copy link

CLAassistant commented Jul 24, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@prabhat00155 prabhat00155 left a comment

Choose a reason for hiding this comment

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

This PR takes the coverage numbers from 87% to 82%. Could you add relevant unit tests?


import skl2onnx
import onnxruntime
import onnx
Copy link
Contributor

Choose a reason for hiding this comment

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

It would look better/more readable if we have these in alphabetical order and all sklearn imports clubbed together.

this_operator.outputs.append(mean_tensor)

if options['return_std'] or options['return_cov']:
# covarance or standard deviation
Copy link
Contributor

Choose a reason for hiding this comment

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

covariance spelling

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

@@ -0,0 +1,255 @@
# -------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add unit tests for this file. Current coverage is 12%.
skl2onnx/operator_converters/_gp_kernels.py 121 107 12% 23-24, 28-61, 66-73, 78-88, 97-104, 113-121, 126-232, 238-255

Copy link
Collaborator Author

@xadupre xadupre Jul 26, 2019

Choose a reason for hiding this comment

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

Unit tests do exists. They are just disabled since they cannot be run with the current runtime.

@@ -0,0 +1,126 @@
# -------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add unit tests to improve coverage for this file? It's just 18%.
skl2onnx/operator_converters/gaussian_process.py 56 46 18% 15-16, 36-121

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same answer as above.

@xadupre xadupre merged commit aae4f7a into onnx:master Jul 26, 2019
@xadupre xadupre deleted the double branch November 14, 2019 11:02
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

5 participants