-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix runtime exception in MapKeyToVector sample. #3287
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
Conversation
@@ -67,8 +67,8 @@ private class DataPoint | |||
|
|||
private class TransformedData : DataPoint | |||
{ | |||
public uint[] TimeframeVector { get; set; } | |||
public uint[] CategoryVector { get; set; } | |||
public float[] TimeframeVector { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the other option is leave it as uint[] but add another transform in the pipeline that converts these column types from float to uint but this is not currently possibly because we don't have float to uint converter in Conversions.cs but of course that can be added and we can use C#'s convention for conversion to uint by casting.
CC: @TomFinley
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think changing the type is appropriate -- this is a key-to-vector sample, the output type of key-to-vector is a float vector, so, this change seems appropriate at least to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TomFinley
Codecov Report
@@ Coverage Diff @@
## master #3287 +/- ##
==========================================
- Coverage 72.63% 72.63% -0.01%
==========================================
Files 807 807
Lines 145129 145129
Branches 16220 16220
==========================================
- Hits 105417 105414 -3
- Misses 35294 35297 +3
Partials 4418 4418
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @codemzs !
fixes #3286