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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Building Predictive Analytics Model from Value Stream

adityak506
7-Bedrock

Building Predictive Analytics Model from Value Stream

Hi,

How to use and pass Value Stream data of Thing to ThingWorx Analytics Builder for building a predictive Analytics model.

Thanks,
Aditya

ACCEPTED SOLUTION

Accepted Solutions
cmorfin
19-Tanzanite
(To:adityak506)

Hi @adityak506 

 

Here are some options:

1) Using the CSVParser extension you can export the Stream Value data to a csv file. Then you can use this csv file to create a dataset inside ThingWorx Analytics Builder.

2) You can also do this in a automatic way:

  1. use QueryNumberPropertyHistory() service to retrieve the Value stream data
  2. loop through all the desired records to build an infotable that will represent the dataset data
  3. create a info table using the AnalyticsDatasetRef datashape to build the dataset infotable.
  4. pass this dataset infotable to the AnalyticsServer_DataThing.CreateDatasetWithDatasetRef().
    Note if you want to see the dataset in Builder, add the tags builderdataset and builderdatasetname:<your dataset name>

 

Hope this helps

Christophe

View solution in original post

2 REPLIES 2
cmorfin
19-Tanzanite
(To:adityak506)

Hi @adityak506 

 

Here are some options:

1) Using the CSVParser extension you can export the Stream Value data to a csv file. Then you can use this csv file to create a dataset inside ThingWorx Analytics Builder.

2) You can also do this in a automatic way:

  1. use QueryNumberPropertyHistory() service to retrieve the Value stream data
  2. loop through all the desired records to build an infotable that will represent the dataset data
  3. create a info table using the AnalyticsDatasetRef datashape to build the dataset infotable.
  4. pass this dataset infotable to the AnalyticsServer_DataThing.CreateDatasetWithDatasetRef().
    Note if you want to see the dataset in Builder, add the tags builderdataset and builderdatasetname:<your dataset name>

 

Hope this helps

Christophe

Thanks Christophe

Announcements


Top Tags