We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
Create a ClassifierFunction with Classify and a list of labeled examples:
Classify an unlabeled example with the ClassifierFunction:
Return the probabilities of the classes given the feature of an example:
Return the sorted probabilities of the most likely classes:
Return the probability of the most probable class:
Return the probability of a given class:
Plot the probability of class "B" as a function of the feature:
Generate a ClassifierFunction using multiple features:
Use the function on a new example:
Classify an example that has missing features:
Get the probabilities for the most probable classes:
Scope (5)Create a function classifying textual data:
Obtain information on the function:
Obtain the properties that can be used by this function:
Generate a classifier measurements object of the function applied to a test set:
Get the accuracy from the function on the test set:
Visualize the confusion matrix:
Generate a classifier function whose input is an association:
Use the function on an example:
Classify examples containing missing features:
Store the ClassifierFunction[…] into a file using the "WMLF" format:
Load the classifier from the file using Import:
Use the loaded classifier on new data:
Train a classifier to predict a person's odds of surviving or dying in the Titanic crash:
Calculate the prior odds of a passenger dying:
Use the classifier to predict the odds of a person dying:
Get an explanation of how each feature multiplied the model's predicted odds of a class:
Compare the model's explanation of feature impact to the base rate odds:
Options (6) ClassPriors (1)Train a classifier on an imbalanced dataset:
The example 5False is classified as True:
Classify this example with a uniform prior over classes:
The class priors of a classifier can also be updated after training:
IndeterminateThreshold (1)Obtain class probabilities for an example:
The most probable class is chosen as the prediction:
No prediction is made if no class probabilities exceed a specified probability threshold:
Update the value of the threshold permanently:
RecalibrationFunction (2)Compute the class probabilities of a new example:
Check if the model has been calibrated:
Temporarily set a recalibration function to apply to the probabilities:
Set a permanent recalibration function to apply to the probabilities:
Compute the class probabilities of a new example:
Remove the recalibration function from the classifier:
Create a nearest neighbors classifier with no calibration function:
The classifier is slightly overconfident:
Select the worst classification case in the test set:
Evaluate the estimated probabilities:
Use "temperature scaling" to reduce the classifier self-confidence:
TargetDevice (1)Train a classifier using a neural network:
Evaluate the resulting classifier on system's default GPU and look at its AbsoluteTiming:
Compare the previous timing with the one achieved by using the default CPU computation:
UtilityFunction (1)By default, the most probable class is predicted:
Specify a utility function that penalizes examples of class "yes" being misclassified as "no":
Update the value of the utility function permanently:
Wolfram Research (2014), ClassifierFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ClassifierFunction.html (updated 2021). TextWolfram Research (2014), ClassifierFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ClassifierFunction.html (updated 2021).
CMSWolfram Language. 2014. "ClassifierFunction." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/ClassifierFunction.html.
APAWolfram Language. (2014). ClassifierFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ClassifierFunction.html
BibTeX@misc{reference.wolfram_2025_classifierfunction, author="Wolfram Research", title="{ClassifierFunction}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ClassifierFunction.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_classifierfunction, organization={Wolfram Research}, title={ClassifierFunction}, year={2021}, url={https://reference.wolfram.com/language/ref/ClassifierFunction.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4