-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Updated xml docs for Poisson, OLS, and OGD regression trainers. #3059
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
Updated xml docs for Poisson, OLS, and OGD regression trainers. #3059
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3059 +/- ##
==========================================
+ Coverage 72.51% 72.52% +0.01%
==========================================
Files 804 805 +1
Lines 144150 144243 +93
Branches 16179 16175 -4
==========================================
+ Hits 104524 104614 +90
- Misses 35216 35226 +10
+ Partials 4410 4403 -7
|
|
|
||
| /// <summary> | ||
| /// Predict a target using a linear regression model trained with the <see cref="OnlineGradientDescentTrainer"/> trainer. | ||
| /// Predict a target using a linear regression model trained with the <see cref="OnlineGradientDescentTrainer"/> and advanced 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.
and [](start = 121, length = 3)
specifying #WontFix
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 "and" is good enough and reads well. This is the language pattern I've used for all trainers so far, so I don't want to make recursive changes to completed trainers unless there's an error or major improvement.
In reply to: 268037979 [](ancestors = 268037979)
| /// <param name="l2Regularization">The L2 weight for <a href='tmpurl_regularization'>regularization</a>.</param> | ||
| /// <param name="optimizationTolerance">Threshold for optimizer convergence.</param> | ||
| /// <param name="historySize">Memory size for <see cref="Microsoft.ML.Trainers.PoissonRegressionTrainer"/>. Low=faster, less accurate.</param> | ||
| /// <param name="historySize">Number of previous iterations to remember for estimate of Hessian. Lower values mean faster but less accurate estimates.</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.
for estima [](start = 80, length = 10)
for the estimate of the Hessian. #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> | ||
| /// Predict a target using a linear regression model trained with the <see cref="Microsoft.ML.Trainers.PoissonRegressionTrainer"/> trainer. | ||
| /// Predict a target using a linear regression model trained with the <see cref="Microsoft.ML.Trainers.PoissonRegressionTrainer"/> and advanced 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.
and [](start = 139, length = 3)
specifying #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> | ||
| /// Number of previous iterations to remember for estimate of Hessian. | ||
| /// Number of previous iterations to remember for estimate of Hessian. Lower values mean faster but less accurate estimates. |
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.
for estimate of Hessian [](start = 57, length = 24)
ditto #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> | ||
| /// Features must occur in at least this many instances to be included | ||
| /// Determines whether to produce output during training or not. |
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.
Determines whether to produce output during training or not. [](start = 16, length = 60)
should it be more explicit: If set to true produces no output during training.
Users can imply the correct usage from the parameter name, but why leave it to implying. #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.
| /// Determines whether to produce output during training or not. | ||
| /// </summary> | ||
| /// <remarks>If greater than 1, forces an initialization pass over the data</remarks> | ||
| //AP removed from now. This requires data transformatio. Perhaps we should handle it as seprate (non-learner) dependant |
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.
shall we keep this piece of info? I bet one = true. #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.
diff is not showing well here. The removed text is for CountThreshold which is commented out and I removed it.
This has been dead argument for about a year. If it's important, it can be dug out of git history later on. For now we should clean it up.
In reply to: 268038318 [](ancestors = 268038318)
| /// <include file='doc.xml' path='doc/members/member[@name="OGD"]/*' /> | ||
| /// <summary> | ||
| /// The <see cref="IEstimator{TTransformer}"/> for training a linear regression model using | ||
| /// online gradient descent (OGD) for estimating the parameters of the linear regression model. |
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.
online gradient descent [](start = 7, length = 24)
feel like those are usually capitalized.
see here: https://papers.nips.cc/paper/3319-adaptive-online-gradient-descent.pdf #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.
You're looking at Title Case in the paper. There are all-lowercase instances in that same paper. But I changed it anyways.
In reply to: 268038471 [](ancestors = 268038471)
| internal ISupportRegressionLossFactory RegressionLossFunctionFactory = new SquaredLossFactory(); | ||
|
|
||
| /// <summary> | ||
| /// A custom <a href="tmpurl_loss">loss</a>. |
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.
tmpurl_loss [](start = 34, length = 11)
should probably fix those before V1 #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.
sfilipi
left a comment
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> | ||
| /// Predict a target using a linear regression model trained with the <see cref="Microsoft.ML.Trainers.PoissonRegressionTrainer"/> trainer. | ||
| /// Predict a target using a linear regression model trained with the <see cref="Microsoft.ML.Trainers.PoissonRegressionTrainer"/>. | ||
| /// </summary> |
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 = 12, length = 10)
Can you please add a remarks section with a discussion of what Poisson regression is? We've had users who are trying to use this for plain linear regression, and this is a bit specialized. #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.
Oh, nevermind -- I see you did this is the base trainer.
In reply to: 268295289 [](ancestors = 268295289)
rogancarr
left a comment
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.
![]()
Related to #2522