Join us on Wednesday, June 3rd for a deep dive into Customer Predictive Analytics Learn more

Issue calling deployed Dataiku model into Python recipe

Level 1
Issue calling deployed Dataiku model into Python recipe

Hello,

I'm facing an issue trying to read a Dataiku Visual Model into a Python recipe to do some custom scoring. I think the model call from dataiku.Model is making the correct call but it's not able to process the get_predictor() command correctly and I'm seeing a strange out of range error. 

Attaching a screenshot here for reference. 

0 Kudos
2 Replies

Hi,

The likely reason is that you trained the model with a Python 2.7 code env and are using a Python 3 code env to call get_predictor.

The underlying Python pickles are Python-version dependent, so you must use the same Python at train time and usage time.

Level 1
Author

Thanks Clement - that was a pretty quick fix! ๐Ÿ˜ƒ 

0 Kudos