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

How top automate model creation?

  • September 5, 2018
  • 2 replies
  • 1372 views

I created a model in Thingworx Analytic Builder.Now I should automate retraining the model with additional data without manual process and generate a PMML file.Is there any way ?

 

It will be helpful if explained in detail.

Best answer by cmorfin

Hi @user539

 

Certainly the easiest would be to use the Retrain menu in ThingWorx Analytics Builder. This obviously implies manual interaction.

If you want to automate it you will need to code some services that call

AnalyticsServer_DataThing.AppendDataset to add new data

AnalyticsServer_TrainingThing.CreateJob to create a new model with this append dataset

AnalyticsServer_TrainingThing.RetrieveModel to retrieve the PMML file.

 

The ThignWorx Analytics API  help can be found at https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index.html

 

Hope this helps

Kind regards

Christophe

 

2 replies

cmorfin19-TanzaniteAnswer
19-Tanzanite
September 5, 2018

Hi @user539

 

Certainly the easiest would be to use the Retrain menu in ThingWorx Analytics Builder. This obviously implies manual interaction.

If you want to automate it you will need to code some services that call

AnalyticsServer_DataThing.AppendDataset to add new data

AnalyticsServer_TrainingThing.CreateJob to create a new model with this append dataset

AnalyticsServer_TrainingThing.RetrieveModel to retrieve the PMML file.

 

The ThignWorx Analytics API  help can be found at https://support.ptc.com/help/thingworx_hc/thingworx_analytics_8/thingworx_analytics_8/baggage/index.html

 

Hope this helps

Kind regards

Christophe

 

5-Regular Member
October 23, 2018

Hello, user539.

 

Did the advice provided by Christophe help you through this? If so, please mark his response as 'solution accepted,' so others with the same question will be better able to search out the answer.

 

If it didn't help you enough, let us know and we'll keep digging into this.

 

Thank you,

 

-- Craig A.