-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Transformer for Concat #896
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
@@ -134,15 +134,15 @@ public sealed class RowToRowMapperTransform : RowToRowTransformBase, IRowToRowMa | |||
{ | |||
private sealed class Bindings : ColumnBindingsBase | |||
{ | |||
private readonly RowToRowMapperTransform _parent; | |||
private readonly IRowMapper _mapper; |
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.
IRowMapper [](start = 29, length = 10)
Would this stop double mapper creation which we have right now for each RowToRowMapperTransform instantiation? #Closed
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.
@@ -123,90 +112,6 @@ public SchemaShape GetOutputSchema(SchemaShape inputSchema) | |||
} | |||
} | |||
|
|||
// REVIEW: Note that the presence of this thing is a temporary measure only. |
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.
// REVIEW: Note that the presence of this thing is a temporary measure only. [](start = 4, length = 76)
People spend time writing this code, and you deleting it without any remorse! #ByDesign
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.
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.
@@ -18,19 +18,33 @@ | |||
using Microsoft.ML.Runtime.Model.Onnx; | |||
using Microsoft.ML.Runtime.Model.Pfa; | |||
using Newtonsoft.Json.Linq; | |||
using Microsoft.ML.Core.Data; |
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.
mildly shock #Resolved
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.
inputs[i].Zip(aliases[i], (name, alias) => (name, alias))); | ||
return result; | ||
} | ||
|
||
private sealed class Bindings : ManyToOneColumnBindingsBase |
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.
Bindings [](start = 29, length = 8)
You probably forgot to delete this peace of code. #Closed
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.
Contracts.CheckValue(inputs, nameof(inputs)); | ||
Contracts.CheckParam(inputs.Any(), nameof(inputs), "Can not be empty"); | ||
|
||
foreach (var (name, alias) in inputs) |
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.
alias [](start = 36, length = 5)
Can we have a test in which we use these aliases, or maybe some kind of ///summary on top of this constructor with description of aliases.
Right now it's mystery for me, and any potential user. #Resolved
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 @Zruty0
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.
Proper conversion of ConcatTransform