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

Checks if categories indices to drop are not None for OneHotEncoder #1028

Merged
merged 3 commits into from Oct 3, 2023

Conversation

xadupre
Copy link
Collaborator

@xadupre xadupre commented Oct 2, 2023

Fixes issues #1017.

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
model_onnx = convert_sklearn(
model, "one-hot encoder", inputs, target_opset=TARGET_OPSET
)
self.assertTrue(model_onnx is not None)

Check notice

Code scanning / CodeQL

Imprecise assert Note

assertTrue(a is not b) cannot provide an informative message. Using assertIsNot(a, b) instead will give more informative messages.
@xadupre xadupre merged commit 1fdd07f into onnx:main Oct 3, 2023
34 checks passed
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

1 participant