From dbf017afd9eae11d392104c3240c81e2d9b7765c Mon Sep 17 00:00:00 2001 From: Senja Filipi Date: Mon, 15 Apr 2019 14:09:51 -0700 Subject: [PATCH] Towards #3204 - ColumCopying documentation (#3316) * applying the #3204 template to ColumnCopying. --- .../Transforms/ColumnCopying.cs | 23 ++++++++++++++++++- .../Transforms/ExtensionsCatalog.cs | 18 +++++++++------ 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs b/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs index 3c9b2eef51..63f4cf5d69 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs @@ -31,8 +31,26 @@ namespace Microsoft.ML.Transforms { /// - /// copies the input column to another column named as specified in the parameters of the transformation. + /// for the . /// + /// + /// 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. + /// See the See Also section for links to examples of the usage. + /// ]]> + /// + /// + /// + /// public sealed class ColumnCopyingEstimator : TrivialEstimator { [BestFriend] @@ -67,6 +85,9 @@ public override SchemaShape GetOutputSchema(SchemaShape inputSchema) } } + /// + /// resulting from fitting an . + /// public sealed class ColumnCopyingTransformer : OneToOneTransformerBase { [BestFriend] diff --git a/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs b/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs index ac0a7ec14d..de8ad69e96 100644 --- a/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs +++ b/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs @@ -51,11 +51,14 @@ internal static IReadOnlyList ConvertFromValueTuples((str public static class TransformExtensionsCatalog { /// - /// Copies the input column to another column named as specified in . + /// Create a , which copies the data from the column specified in + /// to a new column: . /// /// The transform's catalog. - /// Name of the column resulting from the transformation of . - /// Name of the columns to transform. + /// Name of the column resulting from the transformation of . + /// This column's data type will be the same as that of the input column. + /// Name of the column to copy the data from. + /// This estimator operates over any data type. /// /// /// new ColumnCopyingEstimator(CatalogUtils.GetEnvironment(catalog), outputColumnName, inputColumnName); /// - /// 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 , which copies the data from the column specified in + /// to a new column: . /// - /// The transform's catalog - /// The pairs of input and output columns. + /// This transform can operate over several columns. + /// The transform's catalog. + /// The pairs of input and output columns. This estimator operates over any data type. /// /// ///