Using sample.py after export model python
Hello,
I’m trying to use the sample.py after unzipping the archive of a model I extracted.
The model is a light gbm with a feature selection step.
The version of the dss is 12.6.5
However the python script crash after the dummifier step with the error :
Indexed_matrix.py Line 35 in _ remap _ key
Remapped_key = (key[0], self.column_index[key[1]])
keyError: ‘dummy:test_col:A’
The model has multiple preprocessing inside it :
Normalize
ImputeWithValue
Dummifier
DatetimeCyclical
Rescaler
NumNumInteraction
Is there a problem with my extraction or is my model not compatible ?
Cheerfully,
Louis
Operating system used: Windows 10
Operating system used: Windows 10
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi Louis,
Was the export don Export Python model option?
https://doc.dataiku.com/dss/latest/machine-learning/models-export.html#example
Could you share more details on how you exported the model and your full code in the Support ticket, perhaps?Thanks