cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Deploying ML model using external PMML file

AT_10203640
7-Bedrock

Deploying ML model using external PMML file

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

6 REPLIES 6
cmorfin
19-Tanzanite
(To:AT_10203640)

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

 

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

cmorfin
19-Tanzanite
(To:AT_10203640)

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

 

ThankYou @cmorfin I will check it out and get back to you!


Regards,
Ankit

Hi @cmorfin 
I am not able to enable or test my model. I am getting these errors.
"Model is not ready for testing. Enable failed".
Also while creating the Event  I am not getting the name of my model in the drop down.


cmorfin
19-Tanzanite
(To:AT_10203640)

Hi @AT_10203640 

 

In Analysis Even you will only see models that are enabled, so it is normal you cannot see your model if you are not able to enable it.
Are you able to upload your pmml file here for testing ?

Alternatively you can open a  case to Technical Support for further investigation.

 

Thank you

Kind regards

Christophe

 

Announcements


Top Tags