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

Fixes #352, run test about onnxmltools #465

Closed
wants to merge 7 commits into from
Closed

Fixes #352, run test about onnxmltools #465

wants to merge 7 commits into from

Conversation

xadupre
Copy link
Collaborator

@xadupre xadupre commented May 20, 2020

No description provided.

@xadupre xadupre requested a review from prabhat00155 May 20, 2020 00:07
@@ -19,10 +19,11 @@ jobs:
numpy.version: '>=1.18.1'
onnx.version: '==1.7.0'
onnx.target_opset: ''
onnxrt.version: '-i https://test.pypi.org/simple/ ort-nightly'
onnxrt.version: 'onnxruntime==1.3.0' # -i https://test.pypi.org/simple/ ort-nightly'
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 please clean-up commented out code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I let them on purpose to have an easy to way to test against nightly build as I never remember this syntax.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if that's a good reason to have commented code. You can always look at the history and see the previous version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll remove it but my point is people look for something in history if they think can find it there. I doubt this would be the case for this.

@@ -20,9 +20,11 @@ jobs:
onnx.target_opset: ''
numpy.version: 'numpy>=1.18.1'
scipy.version: 'scipy'
onnxrt.version: '-i https://test.pypi.org/simple/ ort-nightly'
onnxrt.version: 'onnxruntime==1.3.0' # -i https://test.pypi.org/simple/ ort-nightly'
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment as above.

- script: |
call activate skl2onnxEnvironment
if "$(onnx.target_opset)" neq "" set TEST_TARGET_OPSET=$(onnx.target_opset)
python -m pip install git+https://github.com/xadupre/onnxmltools.git@i396xgb
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is there a reference to your forked branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because this one has not yet been merged and is needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Shoudn't we first merge the necessary changes then? Not sure if it is a good idea to reference a forked branch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You're right. That's my plan. I'm waiting the PR onnx/onnxmltools#397 to be merged.

@wenbingl
Copy link
Member

wenbingl commented Jun 1, 2020

I am not sure if it is good to make a cross dependency here. onnxmltools is a wrapper for skl2onnx, and it depends on skl2onnx. So if there is a functional test or integration test, the test should be made in onnxmltools, and if it is a unit test, which is not supposed to depend on onnxmltools.

@xadupre
Copy link
Collaborator Author

xadupre commented Jun 1, 2020

This test ensures that xgboost and lightgbm can be used in a scikit-learn pipeline and still be converted into a single onnx file. I think we need to detect if this mechanism is broken. It depends on the ability to register new converters and it was introduced to support onnxmltools converters for lightgbm and xgboost. What do you suggest instead?

@wenbingl
Copy link
Member

wenbingl commented Jun 1, 2020

This test ensures that xgboost and lightgbm can be used in a scikit-learn pipeline and still be converted into a single onnx file. I think we need to detect if this mechanism is broken. It depends on the ability to register new converters and it was introduced to support onnxmltools converters for lightgbm and xgboost. What do you suggest instead?

Unless there are some internal skl2onnx APIs used in these test cases, it would be great to have these tests in onnxmltools to demonstrate how multiple converters can work together.

@xadupre
Copy link
Collaborator Author

xadupre commented Jun 3, 2020

I can move the test in the nightly build if you prefer but I think we should continue testing the conversion of lightgbm and xgboost in pipelines. We should have the same test in onnxmltools. Whenever these tests break in a PR, the author make sure this continue to pass, even if it means keeping depracated code for a couple of releases.

@xadupre xadupre closed this Jun 10, 2020
@xadupre xadupre deleted the i352tools branch September 30, 2020 12:41
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.

4 participants