Skip to content

MurmurHash Onnx Export - #5013

Merged
kere-nel merged 33 commits into
dotnet:masterfrom
kere-nel:onnx_murmurhash
May 5, 2020
Merged

kere-nel merged 33 commits into
dotnet:masterfrom
kere-nel:onnx_murmurhash

Conversation

@kere-nel

@kere-nel kere-nel commented Apr 10, 2020 •

Copy link
Copy Markdown
Contributor

The following data input types are currently not supported by onnxruntime's murmurHash operator: float, double, ulong, long and ordered hashing(vectors). Once added, ml.net will be able to support them as well.

@kere-nel
kere-nel marked this pull request as ready for review April 10, 2020 19:45
@kere-nel
kere-nel requested a review from a team as a code owner April 10, 2020 19:45
@kere-nel
kere-nel requested a review from KsenijaS April 10, 2020 19:52
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs
@kere-nel
kere-nel requested a review from yaeldekel April 13, 2020 19:40
Comment thread src/Microsoft.ML.Core/Utilities/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread test/Microsoft.ML.Tests/OnnxConversionTest.cs Outdated
Comment thread test/Microsoft.ML.Tests/RangeFilterTests.cs
@yaeldekel

yaeldekel commented Apr 19, 2020 •

Copy link
Copy Markdown
    public void TestHashTransformFloat()

Please add a backwards compatibility test for version 0x00010002 models. #Resolved


Refers to: test/Microsoft.ML.TestFramework/DataPipe/TestDataPipe.cs:1054 in 6e5dac7. [](commit_id = 6e5dac7, deletion_comment = False)

Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
// every type uses the same implementation on V2.
// The V1 String Hashing Algorithm had the following properities:
// - Case Conversion: used inside the hashing algorithm in ML.Net.
// - Mock UTF8 encoding: strings in C# are UTF16 and need to be converted to UTF8 before hashing

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.

Please elaborate on what Mock UTF8 encoding is. If I recall correctly, we are omitting certain code pages.
@KsenijaS Didn't you have an implementation that supported the full UTF8 encoding? Can we use that?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, but also partial UTF8 support is sufficient. Mock UTF8 doesn't cover emojis and some special math characters

@yaeldekel
yaeldekel self-requested a review April 26, 2020 07:05
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread test/Microsoft.ML.Tests/OnnxConversionTest.cs

@yaeldekel yaeldekel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🕐

@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:

Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs
@kere-nel
kere-nel requested a review from yaeldekel April 29, 2020 03:16
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
Comment thread src/Microsoft.ML.Data/Transforms/Hashing.cs Outdated
@kere-nel
kere-nel requested a review from yaeldekel May 4, 2020 23:12
@codecov

codecov Bot commented May 5, 2020

Copy link
Copy Markdown

Codecov Report

Merging #5013 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5013   +/-   ##
=======================================
  Coverage   75.60%   75.60%           
=======================================
  Files         993      993           
  Lines      178509   178509           
  Branches    19197    19197           
=======================================
  Hits       134964   134964           
  Misses      38309    38309           
  Partials     5236     5236           
Flag Coverage Δ
#Debug 75.60% <0.00%> (ø)
#production 71.56% <0.00%> (ø)
#test 88.63% <0.00%> (ø)

@yaeldekel yaeldekel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

:shipit:

@kere-nel
kere-nel merged commit c83ea54 into dotnet:master May 5, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 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.

4 participants