How to best get class mapping for pickled StackedModel #5850
-
Hi, I am trying to deploy a stackedmodel classifier with a few dozen classes. The exporting and importing into a common python script works like a charm but how do I actually map the class-label back to the precited class-indices? Is there something like .classes_ or .class_indices? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To get predictions, the most Orange-like way is to prepare your data for prediction in an Orange Table and then just calling it with the data, for example as
Which returns
I hope I understood your question correctly. |
Beta Was this translation helpful? Give feedback.
To get predictions, the most Orange-like way is to prepare your data for prediction in an Orange Table and then just calling it with the data, for example as
stackedmodel(data)
. This returns class label indices, which you can then transform to values, like this: