I am learning some deep learning with images by following this tutorial:
https://blog.hyperiondev.com/index.php/2017/12/11/machine-learning/
The training part went pretty successfully, I even made my own set of data that worked with the training code.
Now I want to use the trained data in one of my iOS app (I am using my own data but the format is identical to the one provided).
Here is the code from coremltools section:
# convert to Apple CoreML
input_name = "shape"
output_features = ("resultsprob", "result")
models = coremltools.converters.sklearn.convert(clf, input_name, output_features)
models.save("shapes.mlmodel")
The error happened on line #4:
ValueError: Class labels must be all of type int or all of type string.
Any ideas on how I can fix this?