-
Notifications
You must be signed in to change notification settings - Fork 1.9k
API reference - Finalize docs template for trainer API & estimators #3218
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
Comments
This comment has been minimized.
This comment has been minimized.
This the final template after several meetings. Below is the example for AveragedPerceptronTrainer. Page-1 - Creation extension methodsPage-1-overload1 Above links are section-links on the same method page Summary
RemarksNone ParametersParameters are defined as usual. Extra info is added to the following params:
ExampleOne example is provided for this API (one per overload) Page-2 - Trainer Estimator ClassSummaryThe <cref=IEstimator(TTransformer)> to predict a target using a linear binary classification model trained with the averaged perceptron. RemarksTo create this trainer, use <xref=overload1> or <xref=overload2>. [we're using xref instead of cref to have short anchor text for the links. cref links for overloads are super long and unreadable] [Input / Output is common for ML tasks. we reuse it by importing external files] Input / Output ColumnsThe input label column data must be of type <xref=System.Single>.
Trainer Characteristics
Training Algorithm DetailsTraining algorithm is described here with references. ExampleNone (we already have samples in Page-1; we're not repeating them here) See also
Page-3 - Trainer Options ClassAveragedPerceptronTrainer.Options SummaryOptions for <cref=AveragedPerceptronTrainer> as used in method <xref=overload2-with-option> RemarksNone ExampleNone (page-1 already includes an example for using the options) ParametersParameters are defined See alsoNone |
This comment has been minimized.
This comment has been minimized.
Completed. |
Currently API reference documentation for each trainer is split into two pages: 1) the creation method, and 2) the trainer estimator class. We also have a 3rd page for trainer options. In this issue, I want to reach a consensus about the content that goes in each page. The current proposal is as follows:
Page-1 - Creation extension methods
These methods act as the constructor for the trainer estimator class. There are two overloads per trainer and they're listed as extension methods in a MLContext trainer catalog. E.g. BinaryClassificationCatalog.BinaryClassificationTrainers.
Both overloads also show up in the same page for the extension class; we call this page-1 (e.g. LightGbm; please note that this page includes all LightGbm overloads including multiclass, ranking, etc and not just binary classification versions).
Summary
1-liner summary of what the trainer does, then "cref=the estimator class, i.e. page-2"
Training algorithm details are not here, and are included in page-2, so that other overloads of this APIs share the same content.
Remarks
[Gleb: add optional description for current overload]
Parameters
Parameters are defined
Example
One example is provided for this API (one per overload)
Page-2 - Trainer Estimator Class
This is the page for trainer estimator class. E.g. LightGbmBinaryTrainer
Summary
1-liner summary of what the trainer does with "cref=IEstimator(TTransformer)". [Gleb: add info on when it is good to use it. - answer the WHY question.] [Gleb: Add link to options in summary]
Training algorithm details are not in the summary.
Remarks
Note about creation: "For creating this trainer please see "cref to both overload methods from page-1"
Easy properties:
Complex properties:
Training algorithm details with all the reference links.
Example
Repeat example from overload-1 of page-1
Repeat example from overload-2 of page-1
See also
"cref to both overload methods from page-1"
[Gleb: link to the catalog with those learners?]
[Gleb: links to other similar learners?]
[Gleb: links to options?]
Page-3 - Trainer Options Class
This is the page for trainer options class that's used in one of the overloads in page-1. E.g. AveragedPerceptronTrainer.Options
Page-1 already links to this page from the type of the option parameter.
Summary
Options for "cref=page-2" as used in method "cref=page-1/overload-with-option".
Remarks
None
Example
None (page-1 already includes an example for using the options)
Parameters
Parameters are defined
See also
[Gleb: the factory methods, the estimator]
/cc @glebuk @sfilipi
The text was updated successfully, but these errors were encountered: