# PMML Predictor: Add Class Probabilities

**URL:** <https://forum.knime.com/t/pmml-predictor-add-class-probabilities/6049>\
**Category:** KNIME Analytics Platform\
**Created:** [April 20, 2017, 5:10pm UTC](https://forum.knime.com/t/pmml-predictor-add-class-probabilities/6049 "2017-04-20T17:10:13Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [May 25, 2022, 5:59am UTC](https://forum.knime.com/t/pmml-predictor-add-class-probabilities/6049/4 "2022-05-25T05:59:59Z")

</div>

@arianiherrera not types of models support class probabilities with PMML (I am not aware of any changes since then):

> [@Export PMML that outputs class probabilities](https://forum.knime.com/t/export-pmml-that-outputs-class-probabilities/13244/2):
>
> I think it depends on the type of model. Normally you would have to tell the Predictor to add the class probabilities. The generic PMML predictor does not have this function - or it depends on the type of model. Nodes that support Probabilities and PMML are: Additionally the Decision Tree offers the possibility to create a quite readably [ruleset](https://nodepit.com/node/org.knime.base.node.rules.engine.decisiontree.FromDecisionTreeNodeFactory) that you can then use with SQL or another language Additionally the Supports these model types and also has the possibility to…

You could try and build a workflow with

> **[PMML Compiling Predictor](https://hub.knime.com/knime/extensions/org.knime.features.base.pmml.translation/latest/org.knime.base.pmml.translation.pmmlpredictor.PMMLFastPredictorNodeFactory)**
>
> This node translates a PMML model into Java scoring code and compiles it into bytecode. It then executes the code with the data from the second port. The preco…

This does support probabilities. You might have to toy around to make it work. Currently there is no example workflow on the hub - which corresponds with my recollection that this is not that easy to set up.

---

_[View the full topic](https://forum.knime.com/t/pmml-predictor-add-class-probabilities/6049)._
