You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Python 3, the prediction code path using PyBind11 doesn't quite work. This is required to have full functionality with Python 3
Here is a simle repro step (this works in Python 2.7)
``
from sklearn import datasets
from sklearn.ensemble import RandomForestClassifier
import coremltools
import numpy
With Python 3, the prediction code path using PyBind11 doesn't quite work. This is required to have full functionality with Python 3
Here is a simle repro step (this works in Python 2.7)
``
from sklearn import datasets
from sklearn.ensemble import RandomForestClassifier
import coremltools
import numpy
Train a scikit-learn model for Iris data
iris = datasets.load_iris()
clf = RandomForestClassifier()
clf.fit(iris.data, iris.target_names[iris.target])
Convert the model
model = coremltools.converters.sklearn.convert(clf)
Make predictions
model.predict({'input': np.zeros(4)})
``
The text was updated successfully, but these errors were encountered: