MLClassifier
A model you train to classify data into discrete categories.
Declaration
enum MLClassifierMentioned in
Overview
Use an MLClassifier to train a general-purpose model to recognize categories.
For example, you can create a classifier that predicts whether a sports team is likely to win or lose its next game by training it with these inputs:
The team’s win-loss ratio
The team’s game locations
When you create an MLClassifier, Create ML inspects your data and automatically chooses a specific classifier (see Supporting Classifier Types).
Topics
Creating and training a classifier
Evaluating a classifier
Testing a classifier
Saving a classifier
Describing a model
Classifier cases
MLClassifier.decisionTree(_:)MLClassifier.randomForest(_:)MLClassifier.boostedTree(_:)MLClassifier.logisticRegression(_:)MLClassifier.supportVector(_:)
Supporting classifier types
MLDecisionTreeClassifierMLRandomForestClassifierMLBoostedTreeClassifierMLLogisticRegressionClassifierMLSupportVectorClassifier