-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Update xml documentation for Image estimators #3376
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
Update xml documentation for Image estimators #3376
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3376 +/- ##
==========================================
+ Coverage 72.69% 72.76% +0.06%
==========================================
Files 807 808 +1
Lines 145171 145452 +281
Branches 16225 16244 +19
==========================================
+ Hits 105536 105839 +303
+ Misses 35220 35192 -28
- Partials 4415 4421 +6
|
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.
A few minor comments.
@@ -23,9 +28,12 @@ public static class ImageEstimatorsCatalog | |||
public static ImageGrayscalingEstimator ConvertToGrayscale(this TransformsCatalog catalog, string outputColumnName, string inputColumnName = null) | |||
=> new ImageGrayscalingEstimator(CatalogUtils.GetEnvironment(catalog), new[] { (outputColumnName, inputColumnName ?? outputColumnName) }); | |||
|
|||
/// <include file='doc.xml' path='doc/members/member[@name="ImageGrayscalingEstimator"]/*' /> | |||
///<summary> | |||
/// Create a <see cref="ImageGrayscalingEstimator"/>, which converts images in the column specified in <see cref="InputOutputColumnPair.InputColumnName"/> |
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.
Should we distinguish between the two methods? i.e. one uses the column names directly, and one supplies a column pair #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.
Second method is internal, so main reason why I'm even adding anything here is because I want to get rid of doc.xml.
In reply to: 276802631 [](ancestors = 276802631)
/// <param name="catalog">The transform's catalog.</param> | ||
/// <param name="columns">Specifies the names of the input columns for the transformation, and their respective output column names.</param> | ||
/// <param name="columns">The pairs of input and output columns. This estimator operates over any data type.</param> |
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.
Is that true? Doesn't the input have to be image data? #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.
@@ -41,20 +49,15 @@ internal static ImageGrayscalingEstimator ConvertToGrayscale(this TransformsCata | |||
} | |||
|
|||
/// <summary> | |||
/// Loads the images from the <see cref="ImageLoadingTransformer.ImageFolder" /> into memory. | |||
/// Create a <see cref="ImageLoadingEstimator"/>, which load the data from the column specified in <paramref name="inputColumnName"/> |
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.
load --> loads #Resolved
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be <see cref="System.Drawing.Bitmap"/>.</param> | ||
/// <param name="inputColumnName">Name of the column to copy the data from. | ||
/// This estimator operates over text data.</param> |
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.
over text data [](start = 36, length = 14)
over text data indicating the path of the images to load. #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.
idk why TextLoader is its own privileged type, but LoadImages is an estimator.. #endRant #WontFix Refers to: src/Microsoft.ML.ImageAnalytics/ExtensionsCatalog.cs:67 in 6d4e789. [](commit_id = 6d4e789, deletion_comment = False) |
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param> | ||
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be known size vector of <see cref="System.Single"/>or <see cref="System.Byte"/> depending on <paramref name="outputAsFloatArray"/>.</param> |
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.
e known [](start = 42, length = 7)
be a known #Resolved
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param> | ||
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be known size vector of <see cref="System.Single"/>or <see cref="System.Byte"/> depending on <paramref name="outputAsFloatArray"/>.</param> |
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.
o [](start = 92, length = 1)
space #Resolved
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be known size vector of <see cref="System.Single"/>or <see cref="System.Byte"/> depending on <paramref name="outputAsFloatArray"/>.</param> | ||
/// <param name="inputColumnName">Name of the column to copy the data from. |
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.
Name of the column to copy the data from [](start = 42, length = 40)
nope :) #Resolved
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</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. |
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.
Name of the column to copy the data from. [](start = 42, length = 41)
fix me :) #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.
/// <param name="inputColumnName"> Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be <see cref="System.Drawing.Bitmap"/>.</param> | ||
/// <param name="inputColumnName">Name of the column to copy the data from. |
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.
Name of the column to copy the data from. [](start = 42, length = 41)
fix me too. #Resolved
@@ -76,7 +79,7 @@ public static ImageLoadingEstimator LoadImages(this TransformsCatalog catalog, s | |||
/// <seealso cref = "ImageEstimatorsCatalog" /> |
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.
/// [](start = 8, length = 47)
please remove #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.
/// <param name="inputColumnName">Name of the column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be <see cref="System.Drawing.Bitmap"/>.</param> | ||
/// <param name="inputColumnName">Name of the column to copy the data from. |
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.
Name of the column to copy the data from. [](start = 42, length = 41)
fix #Resolved
@@ -32,18 +32,8 @@ namespace Microsoft.ML.Transforms.Image | |||
// REVIEW: Rewrite as LambdaTransform to simplify. | |||
// REVIEW: Should it be separate transform or part of ImageResizerTransform? | |||
/// <summary> | |||
/// <see cref="ITransformer"/> produced by fitting the <see cref="IDataView"/> to an <see cref="ImageGrayscalingEstimator" />. | |||
/// <see cref="ITransformer"/> resulting from fitting a <see cref="ImageGrayscalingTransformer"/>. |
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.
a [](start = 58, length = 1)
a --> an #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.
I think in past month I learn more about English grammar rather than machine learning or C# development.
Not sure what to think about this.
In reply to: 276906392 [](ancestors = 276906392)
/// | Output column data type | <xref:System.Drawing.Bitmap> | | ||
/// | ||
/// The resulting <xref:Microsoft.ML.Transforms.Image.ImageGrayscalingTransformer> creates a new column, named as specified in the output column name parameters, and | ||
/// converts image from input column into grayscale image. |
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.
image [](start = 16, length = 7)
the image from the input column into a grayscale image. #Resolved
/// <seealso cref = "ImageEstimatorsCatalog" /> | ||
/// </remarks > | ||
/// [examples](https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/getting-started) in the machinelearning-samples github repository. | ||
/// See the See Also section for links to more examples of the usage. |
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.
examples of the usage [](start = 51, length = 21)
@natke usage examples?
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.
Yes, that sounds better
@@ -29,16 +29,8 @@ | |||
namespace Microsoft.ML.Data | |||
{ | |||
/// <summary> | |||
/// The <see cref="ITransformer"/> produced by fitting an <see cref="IDataView"/> to an <see cref="ImageLoadingEstimator"/>. | |||
/// <see cref="ITransformer"/> resulting from fitting a <see cref="ImageLoadingEstimator"/>. |
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.
a [](start = 58, length = 1)
an #Resolved
/// <seealso cref = "ImageEstimatorsCatalog" /> | ||
/// </remarks > | ||
/// [examples](https://github.com/dotnet/machinelearning-samples/tree/master/samples/csharp/getting-started) in the machinelearning-samples github repository. | ||
/// See the See Also section for links to more examples of the usage. |
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.
Yes, that sounds better
/// | Output column data type | <xref:System.Drawing.Bitmap> | | ||
/// | ||
/// The resulting <xref:Microsoft.ML.Transforms.Image.ImageResizingTransformer> creates a new column, named as specified in the output column name parameters, and | ||
/// resize the data from the input column to this new column. |
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.
resize -> resizes #Resolved
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>.</param> | ||
/// <param name="inputColumnName">Name of column to transform. If set to <see langword="null"/>, the value of the <paramref name="outputColumnName"/> will be used as source.</param> | ||
/// <param name="outputColumnName">Name of the column resulting from the transformation of <paramref name="inputColumnName"/>. | ||
/// This column's data type will be a known-size vector of <see cref="System.Single"/> or <see cref="System.Byte"/> depending on <paramref name="outputAsFloatArray"/>.</param> |
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.
size [](start = 52, length = 4)
sized #Resolved
/// | -- | -- | | ||
/// | Does this estimator need to look at the data to train its parameters? | No | | ||
/// | Input column data type | <xref:System.Drawing.Bitmap> | | ||
/// | Output column data type | Vector of known size of <xref:System.Single> or <xref:System.Byte> | |
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.
Vector of known size [](start = 36, length = 20)
Known-sized vector of ...
/// | Output column data type | Vector of known size of <xref:System.Single> or <xref:System.Byte> | | ||
/// | ||
/// The resulting <xref:Microsoft.ML.Transforms.Image.ImagePixelExtractingTransformer> creates a new column, named as specified in the output column name parameters, and | ||
/// converts image into vector of known size of floats or bytes. Size and data type depends on specified paramaters. |
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.
vector of known size of [](start = 28, length = 23)
ditto
/// | Does this estimator need to look at the data to train its parameters? | No | | ||
/// | Input column data type | <xref:System.Drawing.Bitmap> | | ||
/// | Output column data type | Vector of known size of <xref:System.Single> or <xref:System.Byte> | | ||
/// |
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.
/// [](start = 2, length = 5)
please add: |Required NuGet in addition to Microsoft.ML| the nuget name |
also to other image transforms in the PR #Resolved
/// | | | | ||
/// | -- | -- | | ||
/// | Does this estimator need to look at the data to train its parameters? | No | | ||
/// | Input column data type | Vector of known size of floats, doubles or bytes. | |
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.
floats, doubles or bytes [](start = 59, length = 24)
use system types please, for the sake of F# users #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.
towards #3204