A model you train to classify data into discrete categories.
- macOS 10.14+Beta
- Xcode 10.0+Beta
- Create ML
MLClassifier to train a general-purpose model to recognize categories.
For example, to predict whether a sports team will win or lose, you can give your model inputs such as the team's win-loss ratio and game location to classify the team's next game into the "Win" or "Lose" categories.
When you create an
MLClassifier, your data is inspected and a specific classifier is chosen automatically (see Supporting Classifier Types).