Skip to content

Enable OnnxTransformer to accept KeyDataViewTypes as if they were UInt32 - #4824

Merged
ganik merged 8 commits into
dotnet:masterfrom
antoniovs1029:is22onnxkdvt
Feb 12, 2020
Merged

Enable OnnxTransformer to accept KeyDataViewTypes as if they were UInt32#4824
ganik merged 8 commits into
dotnet:masterfrom
antoniovs1029:is22onnxkdvt

Conversation

@antoniovs1029

@antoniovs1029 antoniovs1029 commented Feb 11, 2020

Copy link
Copy Markdown
Contributor

Addresses microsoft/NimbusML#426

As discussed offline with @harishsk , @ganik and @pieths , the update in here is the best temporary solution to the problem.

Simply enables OnnxTransformer to accept a KeyDataViewType column as input of a model that actually expects an UInt32 input column. This, because of the way that NimbusML works with Category columns in Pandas' DataFrames, by converting them into KeyDataViewType columns in ML.NET, without actually adding KeyToValueTransformers into the pipeline.

@antoniovs1029
antoniovs1029 requested a review from a team as a code owner February 11, 2020 01:52

@harishsk harishsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you please add a test and also a comment in the code describing the scenario this is necessary for?

@antoniovs1029

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment thread test/Microsoft.ML.Tests/OnnxConversionTest.cs

@harishsk harishsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@ganik ganik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@ganik
ganik merged commit 528435c into dotnet:master Feb 12, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants