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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

How to generate a pmml file from Thingworx analytics server

user539
8-Gravel

How to generate a pmml file from Thingworx analytics server

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.

ACCEPTED SOLUTION

Accepted Solutions
mgoel
17-Peridot
(To:user539)

@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

View solution in original post

5 REPLIES 5
mgoel
17-Peridot
(To:user539)

@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

 

 

 

user539
8-Gravel
(To:mgoel)

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)

mgoel
17-Peridot
(To:user539)

@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

user539
8-Gravel
(To:mgoel)

Hi @mgoel

Thank you

your post worked for me.But I should generate that PMML format as file and store it in thingworx storage and retrieve this from another software in another server ?

what might be the solution? I attached pmml format Generating in thingworx.

It will be helpful if explained in detail.

mgoel
17-Peridot
(To:user539)

@user539

 

Could you please open a separate thread for this.

 

Do you want to export this file from ThingWorx storage?

Announcements


Top Tags