Skip to main content
1-Visitor
February 28, 2022
Question

Deploying ML model using external PMML file

  • February 28, 2022
  • 1 reply
  • 2742 views

Hi Team,
I have to create a ML Model in TWX Analytics using an external PMML file. Can I get some relevant guides or articles most suited to start my job?

PS: I am using TWX 9.3

 

Thanks & Regards,

Ankit

1 reply

19-Tanzanite
February 28, 2022

Hi @AT_10203640 

 

If you uploaded the pmml file using the ResultThing.uploadModel, you can use the services from other AnalyticsThing to work with it, especially the PredictionThing. You won't be able to use ThingWorx Analytics Builder though.

The post Upload PMML to Thingworx Analytics is a good start to work in this way.

Alternatively you could also use Analytics Manager, https://www.ptc.com/en/support/article/cs267119 has some high level information about this.

 

Hope this helps

Christophe

 

1-Visitor
March 10, 2022

Hi @cmorfin ,
I have deployed my ML Model using TWX Analytics Manager. Now, I have to give input data to the model. Could you help me out with this, how it's done?  Also, it's a pre-trained model so I just have to fed data on which I need predictions.

Thankyou!
Ankit

19-Tanzanite
March 10, 2022

Hi @AT_10203640 

 

Once you have the Analysis model in place you can perform an initial score with the Test button inside the Analysis Model menu, and for a real time experience create an analysis Event associated to a Thing.

You can check the Real Time scoring video in https://community.ptc.com/t5/IoT-Tech-Tips/How-to-score-new-data-with-ThingWorx-Analytics-8-3-x/m-p/571051#M1070  that shows those 2 actions.

Also the below guide is a good demo about ThingWorx Analytics Manager, every steps after the Publish model would be the same with an imported pmml model.

https://developer.thingworx.com/en/resources/guides/operationalize-analytics-model

 

Hope this helps

Christophe