From 30741e91b4e98168a8adf7be0b525f41b6d43b03 Mon Sep 17 00:00:00 2001 From: Zeeshan Siddiqui Date: Thu, 18 Apr 2019 12:14:46 -0700 Subject: [PATCH 1/2] XML documentation for Poisson Regression trainer. --- .../PoissonRegression/PoissonRegression.cs | 24 ++++++++++++++++--- .../StandardTrainersCatalog.cs | 8 +++---- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs b/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs index b7d5ce4edd..e64ace20af 100644 --- a/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs +++ b/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs @@ -28,12 +28,30 @@ namespace Microsoft.ML.Trainers /// The for training a Poisson regression model. /// /// - /// Poisson regression is a parameterized regression method. + /// + /// /// - /// - /// + /// + /// + /// public sealed class LbfgsPoissonRegressionTrainer : LbfgsTrainerBase, PoissonRegressionModelParameters> { internal const string LoadNameValue = "PoissonRegression"; diff --git a/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs b/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs index 3a0a808cc1..601950b948 100644 --- a/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs +++ b/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs @@ -573,11 +573,11 @@ public static LbfgsLogisticRegressionBinaryTrainer LbfgsLogisticRegression(this } /// - /// Predict a target using a linear regression model trained with the trainer. + /// Creates a , which predicts a target using a linear regression model. /// /// The regression catalog trainer object. - /// The name of the label column. - /// The name of the feature column. + /// The name of the label column. The column data must be + /// The name of the feature column. The column data must be a known-sized vector of /// The name of the example weight column (optional). /// The L1 regularization hyperparameter. Higher values will tend to lead to more sparse model. /// The L2 weight for regularization. @@ -606,7 +606,7 @@ public static LbfgsPoissonRegressionTrainer LbfgsPoissonRegression(this Regressi } /// - /// Predict a target using a linear regression model trained with the and advanced options. + /// Creates a , which predicts a target using a linear regression model with advanced options. /// /// The regression catalog trainer object. /// Trainer options. From 3826e506de4842d1a87c55aa52a9aae1be9874e0 Mon Sep 17 00:00:00 2001 From: Zeeshan Siddiqui Date: Fri, 19 Apr 2019 18:08:22 -0700 Subject: [PATCH 2/2] PR feedback. --- .../Standard/PoissonRegression/PoissonRegression.cs | 7 ++++--- .../StandardTrainersCatalog.cs | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs b/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs index e64ace20af..8eced48dd1 100644 --- a/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs +++ b/src/Microsoft.ML.StandardTrainers/Standard/PoissonRegression/PoissonRegression.cs @@ -49,8 +49,8 @@ namespace Microsoft.ML.Trainers /// ]]> /// /// - /// - /// + /// + /// /// public sealed class LbfgsPoissonRegressionTrainer : LbfgsTrainerBase, PoissonRegressionModelParameters> { @@ -60,7 +60,8 @@ public sealed class LbfgsPoissonRegressionTrainer : LbfgsTrainerBase - /// Options for the . + /// Options for the as used in + /// [LbfgsPoissonRegression(Options)](xref:Microsoft.ML.StandardTrainersCatalog.LbfgsPoissonRegression(Microsoft.ML.RegressionCatalog.RegressionTrainers,Microsoft.ML.Trainers.LbfgsPoissonRegressionTrainer.Options)). /// public sealed class Options : OptionsBase { diff --git a/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs b/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs index 601950b948..09477bc6ac 100644 --- a/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs +++ b/src/Microsoft.ML.StandardTrainers/StandardTrainersCatalog.cs @@ -573,11 +573,11 @@ public static LbfgsLogisticRegressionBinaryTrainer LbfgsLogisticRegression(this } /// - /// Creates a , which predicts a target using a linear regression model. + /// Create , which predicts a target using a linear regression model. /// /// The regression catalog trainer object. - /// The name of the label column. The column data must be - /// The name of the feature column. The column data must be a known-sized vector of + /// The name of the label column. The column data must be . + /// The name of the feature column. The column data must be a known-sized vector of . /// The name of the example weight column (optional). /// The L1 regularization hyperparameter. Higher values will tend to lead to more sparse model. /// The L2 weight for regularization. @@ -606,7 +606,7 @@ public static LbfgsPoissonRegressionTrainer LbfgsPoissonRegression(this Regressi } /// - /// Creates a , which predicts a target using a linear regression model with advanced options. + /// Create using advanced options, which predicts a target using a linear regression model. /// /// The regression catalog trainer object. /// Trainer options.