-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add LR XML doc #3385
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
Add LR XML doc #3385
Conversation
@@ -27,8 +27,55 @@ | |||
namespace Microsoft.ML.Trainers | |||
{ | |||
|
|||
/// <include file='doc.xml' path='doc/members/member[@name="LBFGS"]/*' /> |
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.
file='doc.xml' path='doc/members/member[@name="LBFGS"]/* [](start = 17, length = 56)
please delete these sections that you moved here from doc.xml #Resolved
/// | ||
/// [!include[io](~/../docs/samples/docs/api-reference/io-columns-binary-classification.md)] | ||
/// | ||
/// ### Trainer Characteristics |
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 this be Estimator Characteristics? #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.
/// </summary> | ||
/// <remarks> | ||
/// <format type="text/markdown"><) |
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.
LbfgsLogisticRegression(BinaryClassificationCatalog.BinaryClassificationTrainers, string, string, string, float, float, float, int, bool)) [](start = 104, length = 138)
this UID won't work, you need fully qualified names. please use https://xref.docs.microsoft.com/autocomplete?text=LbfgsLogisticRegression to get the UID. It's this one:
Microsoft.ML.StandardTrainersCatalog.LbfgsLogisticRegression(Microsoft.ML.BinaryClassificationCatalog.BinaryClassificationTrainers,System.String,System.String,System.String,System.Single,System.Single,System.Single,System.Int32,System.Boolean)
please also fix for the other one.
#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.
@@ -39,6 +86,10 @@ public sealed partial class LbfgsLogisticRegressionBinaryTrainer : LbfgsTrainerB | |||
internal const string Summary = "Logistic Regression is a method in statistics used to predict the probability of occurrence of an event and can " | |||
+ "be used as a classification algorithm. The algorithm predicts the probability of occurrence of an event by fitting data to a logistical function."; | |||
|
|||
/// <summary> | |||
/// Options for the <see cref="LbfgsLogisticRegressionBinaryTrainer"/> as used in | |||
/// [LbfgsLogisticRegression(Options)](xref:Microsoft.ML.StandardTrainersCatalog.LbfgsLogisticRegression(BinaryClassificationCatalog.BinaryClassificationTrainers, LbfgsLogisticRegressionBinaryTrainer.Options)). |
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.
(xref:Microsoft.ML.StandardTrainersCat [](start = 46, length = 38)
ditto: fix uid
more info: https://microsoft.sharepoint.com/teams/ML.NET/_layouts/OneNote.aspx?id=%2Fteams%2FML.NET%2FSiteAssets%2FML.NET%20Notebook&wd=target%28Specs.one%7C19A109F5-7BDE-4447-B63E-3934EAD9615D%2FML.Net%20API%20documentation%20fit%20and%20finish%7CC15DB5A6-712C-469F-BDED-5B02554A1238%2F%29
onenote:https://microsoft.sharepoint.com/teams/ML.NET/SiteAssets/ML.NET%20Notebook/Specs.one#ML.Net%20API%20documentation%20fit%20and%20finish§ion-id={19A109F5-7BDE-4447-B63E-3934EAD9615D}&page-id={C15DB5A6-712C-469F-BDED-5B02554A1238}&object-id={22B72EA3-D558-0174-3C77-B4F095C6FB0D}&B #Resolved
Codecov Report
@@ Coverage Diff @@
## master #3385 +/- ##
==========================================
+ Coverage 72.69% 72.76% +0.06%
==========================================
Files 807 808 +1
Lines 145172 145452 +280
Branches 16225 16244 +19
==========================================
+ Hits 105538 105838 +300
+ Misses 35220 35192 -28
- Partials 4414 4422 +8
|
@@ -518,11 +518,11 @@ public IClassificationLoss CreateComponent(IHostEnvironment env) | |||
} | |||
|
|||
/// <summary> | |||
/// Predict a target using a linear binary classification model trained with the <see cref="Trainers.LbfgsLogisticRegressionBinaryTrainer"/> trainer. | |||
/// Create an <see cref="Trainers.LbfgsLogisticRegressionBinaryTrainer"/>, which predicts a target using a linear binary classification model trained over boolean label data. |
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.
an [](start = 20, length = 2)
Can you please check with Shahab/@natke if we need "an"? In my PRs it was just Create
#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.
"Create a" or just "Create" #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.
/// An accurate model with extreme coefficient values would be penalized more, but a less accurate model with more conservative values would be penalized less. | ||
/// | ||
/// This learner supports [elastic net regularization](https://en.wikipedia.org/wiki/Elastic_net_regularization): a linear combination of L1-norm (LASSO), $|| \boldsymbol{w} ||_1$, and L2-norm (ridge), $|| \boldsymbol{w} ||_2^2$ regularizations. | ||
/// L1-nrom and L2-norm regularizations have different effects and uses that are complementary in certain respects. |
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.
r [](start = 12, length = 1)
L1-norm #Resolved
/// This learner supports [elastic net regularization](https://en.wikipedia.org/wiki/Elastic_net_regularization): a linear combination of L1-norm (LASSO), $|| \boldsymbol{w} ||_1$, and L2-norm (ridge), $|| \boldsymbol{w} ||_2^2$ regularizations. | ||
/// L1-nrom and L2-norm regularizations have different effects and uses that are complementary in certain respects. | ||
/// Using L1-norm can increase sparsity of the trained $\boldsymbol{w}$. | ||
/// When working with high-dimensional data, it shrinks small weights of irrevalent features to 0 and therefore no reource will be spent on those bad features when making prediction. |
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.
irrevalent [](start = 77, length = 10)
irrelavent #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.
Toward #2522 following #3218.