import sklearn model trained outside of Dataiku into Dataiku

tommyeastman1
tommyeastman1 Registered Posts: 1 ✭✭✭✭
I trained an sklearn model outside of Dataiku and now want to use the model to make predictions in Dataiku. How would I upload my model.joblib or model.pkl file to Dataiku? I don't know if I should try to upload it as a dataset (this didn't really work for me) or if there is a way to upload a model object.



I would want to simply do something like the following within a python recipe in Dataiku:

##import model.joblib - how to get this into Dataiku?

clf=joblib.load(model.joblib)

X=dataiku.Dataset("X").get_dataframe()

predictions=clf.predict(X)

Answers

Setup Info
    Tags
      Help me…