I got the same result in this way:
let myInstance = try? classifier(configuration: MLModelConfiguration()).model
let predictor = try? NLModel(mlModel: myInstance!)
	let result = try predictor?.predictedLabelHypotheses(for: inputData, maximumCount: 3)
Topic:
Machine Learning & AI
SubTopic:
Core ML
Tags: