Skip to content

Commit 7ca768a

Browse files
authored
Refine descriptions of Microsoft.ML classes (#3446)
1 parent 3d6f66d commit 7ca768a

35 files changed

+145
-60
lines changed

src/Microsoft.ML.Core/Data/ModelSaveContext.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
namespace Microsoft.ML
1212
{
1313
/// <summary>
14-
/// This is a convenience context object for saving models to a repository, for
15-
/// implementors of <see cref="ICanSaveModel"/>. It is not mandated but designed to reduce the
16-
/// amount of boiler plate code. It can also be used when saving to a single stream,
17-
/// for implementors of <see cref="ICanSaveInBinaryFormat"/>.
14+
/// Convenience context object for saving models to a repository, for
15+
/// implementors of <see cref="ICanSaveModel"/>.
1816
/// </summary>
17+
/// <remarks>
18+
/// This class reduces the amount of boiler plate code needed to implement <see cref="ICanSaveModel"/>.
19+
/// It can also be used when saving to a single stream, for implementors of <see cref="ICanSaveInBinaryFormat"/>.
20+
/// </remarks>
1921
public sealed partial class ModelSaveContext : IDisposable
2022
{
2123
/// <summary>

src/Microsoft.ML.Core/Prediction/TrainerInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Microsoft.ML
66
{
77
/// <summary>
8-
/// Instances of this class posses information about trainers, in terms of their requirements and capabilities.
8+
/// Characteristics of a trainer. Exposed via the Info property of each trainer.
99
/// </summary>
1010
public sealed class TrainerInfo
1111
{

src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoaderSaverCatalog.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace Microsoft.ML
1111
{
12+
/// <summary>
13+
/// Collection of extension methods for the <see cref="DataOperationsCatalog"/> to create instances of
14+
/// components to save and read <see cref="IDataView"/> objects to and from a high-performance binary format.
15+
/// </summary>
1216
public static class BinaryLoaderSaverCatalog
1317
{
1418
/// <summary>

src/Microsoft.ML.Data/DataLoadSave/DataLoaderExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace Microsoft.ML
88
{
9+
/// <summary>
10+
/// Class used to load data from one or more files.
11+
/// </summary>
912
public static class DataLoaderExtensions
1013
{
1114
/// <summary>

src/Microsoft.ML.Data/DataLoadSave/DataOperationsCatalog.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
namespace Microsoft.ML
1212
{
1313
/// <summary>
14-
/// A catalog of operations over data that are not transformers or estimators.
15-
/// This includes data loaders, saving, caching, filtering etc.
14+
/// Class used to create components that operate on data, but are not part of the model training pipeline.
15+
/// Includes components to load, save, cache, filter, shuffle, and split data.
1616
/// </summary>
1717
public sealed class DataOperationsCatalog : IInternalCatalog
1818
{

src/Microsoft.ML.Data/DataLoadSave/EstimatorExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Microsoft.ML
1111
{
1212
/// <summary>
13-
/// Extension methods that allow chaining estimator and transformer pipes together.
13+
/// Extension methods that allow chaining of estimator and transformer pipelines.
1414
/// </summary>
1515
public static class LearningPipelineExtensions
1616
{

src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
namespace Microsoft.ML
1111
{
12+
/// <summary>
13+
/// Collection of extension methods for the <see cref="DataOperationsCatalog"/> to read from delimited text
14+
/// files such as csv and tsv.
15+
/// </summary>
1216
public static class TextLoaderSaverCatalog
1317
{
1418
/// <summary>

src/Microsoft.ML.Data/DebuggerExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
namespace Microsoft.ML
1010
{
1111
/// <summary>
12-
/// Static extensions for data preview.
12+
/// Class used to create instances of preview objects for debugging.
13+
/// Note: this class and all methods should only be used for debugging and not in production code.
1314
/// </summary>
1415
public static class DebuggerExtensions
1516
{

src/Microsoft.ML.Data/MLContext.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
namespace Microsoft.ML
1111
{
1212
/// <summary>
13-
/// The <see cref="MLContext"/> is a starting point for all ML.NET operations. It is instantiated by user,
14-
/// provides mechanisms for logging and entry points for training, prediction, model operations etc.
13+
/// The common context for all ML.NET operations. Once instantiated by the user, it provides a way to
14+
/// create components for data preparation, feature enginering, training, prediction, model evaluation.
15+
/// It also allows logging, execution control, and the ability set repeatable random numbers.
1516
/// </summary>
1617
public sealed class MLContext : IHostEnvironment
1718
{

src/Microsoft.ML.Data/Model/ModelOperationsCatalog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Microsoft.ML
1414
{
1515
/// <summary>
16-
/// An object serving as a 'catalog' of available model operations.
16+
/// Class used by <see cref="MLContext"/> to save and load trained models.
1717
/// </summary>
1818
public sealed class ModelOperationsCatalog : IInternalCatalog
1919
{

0 commit comments

Comments
 (0)