Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.9k
Adding documentation about the rest of the classes involved on generating the CSharpAPI#529
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
074b8008b7f416266952c0b17a0b98ffc796854c9a5f52db8c6ee265dc01215781293ddb2592d311eb2a8e911656524fd36f45e697f5ac2b43f65406484255cb96a7fFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -26,6 +26,7 @@ | ||
| namespace Microsoft.ML.Runtime.Data | ||
| { | ||
| /// <include file='doc.xml' path='doc/members/member[@name="NAFilter"]'/> | ||
| ||
| public sealed class NAFilter : FilterBase | ||
| { | ||
| private static class Defaults | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -29,14 +29,14 @@ | ||
| namespace Microsoft.ML.Runtime.Data | ||
| { | ||
| /// <summary> | ||
| /// TermTransform builds up term vocabularies (dictionaries). | ||
| /// Notes: | ||
| /// * Each column builds/uses exactly one "vocabulary" (dictionary). | ||
| /// * Output columns are KeyType-valued. | ||
| /// * The Key value is the one-based index of the item in the dictionary. | ||
| /// * Not found is assigned the value zero. | ||
| /// </summary> | ||
| // TermTransform builds up term vocabularies (dictionaries). | ||
| // Notes: | ||
| // * Each column builds/uses exactly one "vocabulary" (dictionary). | ||
| // * Output columns are KeyType-valued. | ||
| // * The Key value is the one-based index of the item in the dictionary. | ||
| // * Not found is assigned the value zero. | ||
| ||
| /// <include file='doc.xml' path='doc/members/member[@name="TextToKey"]/*' /> | ||
| public sealed partial class TermTransform : OneToOneTransformBase, ITransformTemplate | ||
| { | ||
| public abstract class ColumnBase : OneToOneColumn | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| <?xml version="1.0" encoding="utf-8" ?> | ||
| <doc> | ||
| <members> | ||
| <member name="NAFilter"> | ||
| <summary> | ||
| Removes missing values from vector type columns. | ||
| </summary> | ||
| <remarks> | ||
| This transform removes the entire row if any of the input columns have a missing value in that row. | ||
| This preprocessing is required for many ML algorithms that cannot work with missing values. | ||
| Useful if any missing entry invalidates the entire row. | ||
| If the <see cref="Microsoft.ML.Runtime.Data.NAFilter.Defaults.Complement"/> is set to true, this transform would do the exact opposite, | ||
| it will keep only the rows that have missing values. | ||
| </remarks> | ||
| <seealso cref="Microsoft.ML.Runtime.Data.MetadataUtils.Kinds.HasMissingValues"></seealso> | ||
| </member> | ||
| <example name="NAFilter"> | ||
| <example> | ||
| <code language="csharp"> | ||
| pipeline.Add(new MissingValuesRowDropper("Column1")); | ||
| </code> | ||
| </example> | ||
| </example> | ||
| <member name="TextToKey"> | ||
| <summary> | ||
| Converts input values (words, numbers, etc.) to index in a dictionary. | ||
| </summary> | ||
| <remarks> | ||
| The TextToKeyConverter transform builds up term vocabularies (dictionaries). | ||
| The TextToKey Converter and the <see cref="T:Microsoft.ML.Transforms.HashConverter"/> are the two one primary mechanisms by which raw input is transformed into keys. | ||
| If multiple columns are used, each column builds/uses exactly one vocabulary. | ||
| The output columns are KeyType-valued. | ||
| The Key value is the one-based index of the item in the dictionary. | ||
| If the key is not found in the dictionary, it is assigned the missing value indicator. | ||
| This dictionary mapping values to keys is most commonly learnt from the unique values in input data, | ||
| but can be defined through other means: either with the mapping defined directly on the command line, or as loaded from an external file. | ||
| </remarks> | ||
| <seealso cref="T:Microsoft.ML.Transforms.HashConverter"/> | ||
| <seealso cref="T:Microsoft.ML.Transforms.KeyToTextConverter"/> | ||
| </member> | ||
| <example name="TextToKey"> | ||
| <example> | ||
| <code language="csharp"> | ||
| pipeline.Add(new TextToKeyConverter(("Column", "OutColumn")) | ||
| { | ||
| Sort = TermTransformSortOrder.Occurrence | ||
| }); | ||
| </code> | ||
| </example> | ||
| </example> | ||
| </members> | ||
| </doc> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -20,7 +20,7 @@ public interface IFastTreeTrainerFactory : IComponentFactory<ITrainer> | ||
| { | ||
| } | ||
| /// <include file='./doc.xml' path='docs/members/member[@name="FastTree"]/*' /> | ||
| /// <include file='doc.xml' path='doc/members/member[@name="FastTree"]/*' /> | ||
| ||
| public sealed partial class FastTreeBinaryClassificationTrainer | ||
| { | ||
| [TlcModule.Component(Name = LoadNameValue, FriendlyName = UserNameValue, Desc = Summary)] | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
❓ Why make this change? I would expect one of the following:
hrefspecified but no explicit text)<see href="http://epubs.siam.org/doi/pdf/10.1137/1.9781611972740.53">Reservoir-base Random Sampling with Replacement from Data Stream</a><see href="http://epubs.siam.org/doi/pdf/10.1137/1.9781611972740.53">Reservoir-base Random Sampling with Replacement from Data Stream (PDF, Proceedings of the 2004 SIAM International Conference on Data Mining)</a>📝
<see hrefis a well-supported form for external links in documentation comments, more so than<a href. #ResolvedThere 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.
Doesn't seem see contains any href:
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/xmldoc/see
And this was a bit unsettling:
https://stackoverflow.com/questions/6960426/c-sharp-xml-documentation-website-link
In reply to: 202773275 [](ancestors = 202773275)