// Create MLJ meta information
schema = new Schema(attrInfos, labelAttrib);
InstanceList instances = createInstances(trainingData, attribMap);
// Train categoriser
Categorizer categorizer = getCategorizer(instances);
// Build predictor
return new MLJCategorizerPredictor(categorizer, attribMap, schema);
}