Relative Content

Tag Archive for swiftxcodecoreml

Core ML prediction randomly returns NaN even when input is hardcoded

I’ve created a CoreML model using Create ML tool and have been testing it on a physical device. As part of debugging the app I decided to hardcode the data to match a csv file that I had already ran in the Create ML preview feature.
9 times out of 10, the prediction label and prediction probability match, but 1 out 10 I get a prediction probability of NaN.