Stay organized with collections
Save and categorize content based on your preferences.
Sets the output mode.
Usage
Returns
Classifier.setOutputMode(mode)
Classifier
Argument
Type
Details
this: classifier
Classifier
An input classifier.
mode
String
The output mode. One of:
CLASSIFICATION (default): The output is the class number.
REGRESSION: The output is the result of standard regression.
PROBABILITY: The output is the probability that the classification is correct.
MULTIPROBABILITY: The output is an array of probabilities that each class is correct ordered by classes seen.
RAW: The output is an array of the internal representation of the classification process. For example, the raw votes in multi-decision tree models.
RAW_REGRESSION: The output is an array of the internal representation of the regression process. For example, the raw predictions of multiple regression trees.
Not all classifiers support modes other than CLASSIFICATION.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."],[[["Sets the output mode for a classifier, impacting how results are presented."],["Offers various output modes like CLASSIFICATION, REGRESSION, PROBABILITY, MULTIPROBABILITY, RAW, and RAW_REGRESSION, each providing different data representations."],["Not all classifiers support every output mode; CLASSIFICATION is the default."],["The setOutputMode function takes a string argument representing the desired mode and returns the classifier instance."]]],[]]