Skip to main content
1-Visitor
September 3, 2018
Solved

How to generate a pmml file from Thingworx analytics server

  • September 3, 2018
  • 1 reply
  • 4537 views

I installed Thingworx trial edition which has Thingworx analytic server by default. I loaded sample dataset in analytics builder and created a model.Now I want to generate a PMML file from analytic server.

How can PMML file be generated?

I have no idea about analytic manager.

Best answer by mgoel

@user539

Please try the below steps, you can get the PMML of the model you have created.

 

In ThingWorx Composer:

  • Access AnalyticsServer_TrainingThing > Services
  • Locate service RetrieveModel
  • Enter the jobId of the model
    • Note to retrieve the jobID
    • access ThignWorx Analytics Builder > Models
    • select the model > Job Details
    • the jobId is listed as Result ID under Model Job
  • Execute the service
  • Copy and paste the output into a xml file

Hope it will help. 

Regards,

Mohit

1 reply

5-Regular Member
September 3, 2018

@user539

 

Thank you for opening this post with us. Please check the answer on below post, As of now there is no way to download PMML. We can only check the model details.

https://community.ptc.com/t5/ThingWorx-Developers/ThingWorx-Analytics-getting-prediction-model/m-p/517020#M13007

 

Do let me know in case of any question.

Regards,

Mohit

 

 

 

user5391-VisitorAuthor
1-Visitor
September 3, 2018

I found this in the document:(I uploaded the document also)

 

 

The ThingPredictor handles predictive scoring, mentioned in section 5.1.6, for real-time use with the published model. While this might seem tedious it can allow the use of Analytics Builder models without having an Analytics Server connection, if an exported model is uploaded. If a model has been published it is available via an URL link when viewing the model. This will download an xml file containing the model in Predictive Model Markup Language (PMML)

mgoel5-Regular MemberAnswer
5-Regular Member
September 3, 2018

@user539

Please try the below steps, you can get the PMML of the model you have created.

 

In ThingWorx Composer:

  • Access AnalyticsServer_TrainingThing > Services
  • Locate service RetrieveModel
  • Enter the jobId of the model
    • Note to retrieve the jobID
    • access ThignWorx Analytics Builder > Models
    • select the model > Job Details
    • the jobId is listed as Result ID under Model Job
  • Execute the service
  • Copy and paste the output into a xml file

Hope it will help. 

Regards,

Mohit