Open shayneobrien opened 5 years ago
Hi @shayneobrien are you able to share the dataset that reproduces this error? We'd like to repro it in house. Thanks!
Hi @shayneobrien are you able to share the dataset that reproduces this error? We'd like to repro it in house. Thanks!
Unfortunately I am unable to share the dataset :/... is there any other info I can provide to help debug? I ran into similar issues with other tree-based models as well. Non-tree models e.g. logistic regression export to CoreML without error.
@shayneobrien I'm unable to reproduce this with any datasets I have access to, is there a subset of the data you can share or perhaps a different dataset that also reproduces the error?
This easily reproduces it:
import turicreate as tc
X = tc.util.generate_random_classification_sframe(500, "d", 4)
m = tc.random_forest_classifier.create(X, "target")
m.export_coreml("test.mlmodel")
I am attempting to train and export a tc.random_forest_classifier using the following code:
The model fully trains and evaluates successfully but I am unable to export it to CoreML. I receive the following error when trying to do so:
The input data consists of a binary target (0, 1) and has features consisting of strings tokenized into dicts using tc.text_analytics.count_words. I am on TuriCreate version 5.6 and Python 3.6. Thank you and please advise.