-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding documentation about the rest of the classes involved on genera…
…ting the CSharpAPI (#529) * Moving from xml strings to having the documentation details in xml files. For the summary text that is common between several learners, the examples will be added on a separate node. An example of how that will look like is in the LogisticRegressionBinaryClassifier and LogisticRegressionClassifier. * fixing the aftermath of renaming the XML file. * removing the Desc from the EntryPoint attribute is a bad idea. * removing the XML docs from the doc folder, and added them under the respective projects. * Some OS get picky about casing. * file name should be vanilla * Adding documentation for the first group of transforms * adding more documentation. changing the root of the XML documents from docs -> doc, since its only one. Switching all <see href /> to the valid <see cref /> * formatting tweaks, and adressing most of the code comments. * Extracted the examples outside of the member nodes in the xml, so that they only appear in the CSharpApi classes, and not on the runtime classes. * small fixes * addressing code comments * addressing Pete's comments. * Fixing language around the CharTokenizer description. Closes #389
- Loading branch information
Showing
69 changed files
with
1,442 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.