Question

25 + Predictive Models in a Single Strategy

As part of project, we are planning to use Predictive models which are built outside of Pega and importing them into Pega via PMML import.

Data Analytics team is going to provide 25 to 30 Predictive models to use inside Pega.

At any point of time,only one Predictive model will be executed as per the request data.

So I included all Predictive models (25) in a single strategy and use switch component to execute the right one as per the request data.

I did a quick POC and observed that, Pega Strategy is executing all Predictive Models defined in it and then picking the right Predictive model as per the condition in switch component.

Is there a way I can execute the correct predictive model without executing all other models defined in Strategy?

Your response is very much appreciated.

Correct Answer
November 12, 2019 - 11:28am

Hi

In strategy "test" mode that is the expected behavior - we evaluate all components.

But when running for real, e.g. via a data flow run, that should not be the case. 

Can you confirm how you tested this?

Thanks

Otto

Comments

Keep up to date on this post and subscribe to comments

November 12, 2019 - 11:28am

Hi

In strategy "test" mode that is the expected behavior - we evaluate all components.

But when running for real, e.g. via a data flow run, that should not be the case. 

Can you confirm how you tested this?

Thanks

Otto

November 18, 2019 - 8:54am
Response to Otto_Perdeck

Thanks Otto for your response. 

In Strategy test mode , I observed that behavior.

Like in process flow, Do we have any restrictions on number of components in a single strategy rules?

Regards,

Saravanan

November 18, 2019 - 11:20am

I'm not aware of any limitations. I'm sure there are but I am pretty sure you will run into usability trouble managing 100's of shapes long before you hit a hard technical boundary.

November 21, 2019 - 8:56am

Also predictive model execution is very fast - typically not something to worry about as a functional user.