-
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 4 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">< 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. |"Required NuGet in addition to Microsoft.ML" | None| In reply to: 275072871 [](ancestors = 275072871,275070680) |
||
/// 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"/> | ||||||||
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. Another nit: add "," before which #Resolved |
||||||||
/// 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"> | ||||||||
/// <![CDATA[ | ||||||||
|
@@ -67,11 +71,13 @@ public static ColumnCopyingEstimator CopyColumns(this TransformsCatalog catalog, | |||||||
=> new ColumnCopyingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName); | ||||||||
|
||||||||
/// <summary> | ||||||||
/// Copies the input column, name specified in the first item of the tuple, | ||||||||
/// to another column, named as specified in the second item of the tuple. | ||||||||
/// Create a <see cref="ColumnCopyingEstimator"/> which copies the data from the column specified in <see cref="InputOutputColumnPair.InputColumnName" /> | ||||||||
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. nit: add "," before which #Resolved |
||||||||
/// to a new column: <see cref="InputOutputColumnPair.OutputColumnName" />. | ||||||||
/// </summary> | ||||||||
/// <param name="catalog">The transform's catalog</param> | ||||||||
/// <param name="columns">The pairs of input and output columns.</param> | ||||||||
/// <remarks>This transform can operate over several columns. | ||||||||
/// For more information see <see cref="ColumnCopyingEstimator"/>.</remarks> | ||||||||
/// <param name="catalog">The transform's catalog.</param> | ||||||||
/// <param name="columns">The pairs of input and output columns. This estimator operates over any data type.</param> | ||||||||
/// <example> | ||||||||
/// <format type="text/markdown"> | ||||||||
/// <![CDATA[ | ||||||||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
Tiny nitpick: remove the "." #Resolved