A table of data for training or evaluating a machine learning model.
- macOS 10.14+Beta
- Xcode 10.0+Beta
- Create ML
You can create a data table by adding tabular data directly from
MLData instances you create, or you can create it from a JSON or CSV file. Use data processing methods like
subscript(_:) to change existing values or derive new columns.
After you load and process your data, you use the table to train a machine learning model. For example, the following figure illustrates how you might structure a data table used to train a classification model that predicts the genre of a book.