Skip to main content

On-Device Training

PrismIntelligence wraps Apple’s CreateML framework so you can train classification and regression models entirely on-device. No data leaves the user’s machine.

Text Classification

PrismTextIntelligence trains text classifiers from labeled samples:
Train a Text Classifier
You can also initialize from typed samples:
Typed Samples
Rows missing "text" or "label" keys are silently skipped. The trainer tracks invalid row count internally, and training fails if too few valid samples remain.

Tabular Models

PrismTabularIntelligence handles structured data for classification and regression:
Tabular Classification

Codable Training Data

Use PrismCodableTrainingData for serializable, type-safe training datasets:
Codable Training Data

Model Manager

PrismModelManager is an actor that manages the lifecycle of trained models:
Managing Models

Model Types

Local Trainer

PrismIntelligenceLocalTrainer is the low-level engine behind text and tabular training:
Direct Trainer Usage
For most use cases, prefer PrismTextIntelligence or PrismTabularIntelligence over using the trainer directly. They handle data validation and provide a simpler API.

Complete Example

End-to-End Text Classifier