github.com/ apple/ coremltools/ tree/ master/ mlmodel/ format
Slide 28
Slide 29
Slide 30
Slide 31
Slide 32
Slide 33
let c = MLModel.compile(url: u) let m = MLModel(url: c) let d:[String:Any] = ["input": image] let dfpin = MLDictionaryFeatureProvider(dictionary: d) let fp = m.predict(dfp) let dfpout = fp.featureValue(for: "labels") let dic = dfpout.dictionaryValue let topResult = dic.first()