-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Towards #3204 - ColumCopying documentation #3316
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
Changes from 5 commits
1d924ae
b3d0e64
b38f0fb
0abeb92
42e2cda
ff7fa6f
421069d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,23 @@ | |
namespace Microsoft.ML.Transforms | ||
{ | ||
/// <summary> | ||
/// <see cref="ColumnCopyingEstimator"/> copies the input column to another column named as specified in the parameters of the transformation. | ||
/// <see cref="IEstimator{TTransformer}"/> for the <see cref="ColumnCopyingTransformer"/>. | ||
/// </summary> | ||
/// <remarks> | ||
/// <format type="text/markdown"><![CDATA[ | ||
/// | ||
/// ### Estimator Characteristics | ||
/// | | | | ||
/// | -- | -- | | ||
/// | Does this estimator need to look at the data to train its parameters? | No | | ||
/// | Input column data type | Any | | ||
/// | Output column data type | The same as the data type in the input column | | ||
/// | ||
/// The resulting <see cref="ColumnCopyingTransformer"/> creates a new column, named as specified in the output column name parameters, and | ||
/// copies the data from the input column to this new column. | ||
/// ]]> | ||
/// </format> | ||
/// </remarks> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you describe at least one way to use this transform? Maybe add a link to |
||
public sealed class ColumnCopyingEstimator : TrivialEstimator<ColumnCopyingTransformer> | ||
{ | ||
[BestFriend] | ||
|
@@ -67,6 +82,9 @@ public override SchemaShape GetOutputSchema(SchemaShape inputSchema) | |
} | ||
} | ||
|
||
/// <summary> | ||
/// <see cref="ITransformer"/> resulting from fitting an <see cref="ColumnCopyingEstimator"/>. | ||
/// </summary> | ||
public sealed class ColumnCopyingTransformer : OneToOneTransformerBase | ||
{ | ||
[BestFriend] | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -51,11 +51,15 @@ internal static IReadOnlyList<InputOutputColumnPair> ConvertFromValueTuples((str | |||||||
public static class TransformExtensionsCatalog | ||||||||
{ | ||||||||
/// <summary> | ||||||||
/// Copies the input column to another column named as specified in <paramref name="outputColumnName"/>. | ||||||||
/// Create a <see cref="ColumnCopyingEstimator"/>, which copies the data from the column specified in <paramref name="inputColumnName"/> | ||||||||
/// to a new column: <paramref name="outputColumnName"/>. | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just remove the:? I think i might leave it, since Natalie seems ok with it? In reply to: 275449364 [](ancestors = 275449364) |
||||||||
/// </summary> | ||||||||
/// <remarks>For more information see <see cref="ColumnCopyingEstimator"/>.</remarks> | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
we don't have this for trainers. we should be consistent. is this helpful? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do already link to ColumnCopyingEstimator above, but this doesn't hurt @shmoradims |
||||||||
/// <param name="catalog">The transform's catalog.</param> | ||||||||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param> | ||||||||
/// <param name="inputColumnName">Name of the columns to transform.</param> | ||||||||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||||||||
/// This column's data type will be the same as that of the input column.</param> | ||||||||
/// <param name="inputColumnName">Name of the column to copy the data from. | ||||||||
/// This estimator operates over any data type.</param> | ||||||||
/// <example> | ||||||||
/// <format type="text/markdown"> | ||||||||
/// <
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.
|"Required NuGet in addition to Microsoft.ML" | None|
In reply to: 275072871 [](ancestors = 275072871,275070680)