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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Thingworx Analytics : How do fetch prediction score values and show on any mashup?

ahawaldar-2
10-Marble

Thingworx Analytics : How do fetch prediction score values and show on any mashup?

Hi,

 

I am following this video Analytics manager 7.4: Part 2 of 2. Configure Analysis Event, Real-Time Scoring  and Showing ThingWorx Analytics Manager's results (ThingPredictor) in a Mashup

 

I am attaching three screen shot which gives the graphical sequence of execution to determine predicted score value. Here property "condition" is my target value. And "datacollection" property is where my result of scoring will be persisted.

 

I have written below service code but no luck, I am not seeing any output.

 

var score = me.dataCollection.getRow(0).predictiveModelCollection.getRow(0).predictiveScore;

var tableLength = score.rows.length;

for(var x =0; x<tableLength; x++) {

    var row = score.rows;

    if(row.fieldName == "condition") {

        me.condition_predicted = row.fieldValue;

        x = tableLength;

    }

}

result = me.condition_predicted;

 

​Please do let me know, if I have done any mistake here.

 

Thanks,

Azim

ACCEPTED SOLUTION

Accepted Solutions

Hi ,

My bad there were some issues in my code. After inserting logs I came to know and rectified it.

Thanks,

Azim

View solution in original post

4 REPLIES 4

Below are the screens

1)

screen1.png

2)

screen2.png

3)

screen3.png

4)

screen4.png

posipova
20-Turquoise
(To:ahawaldar-2)

Christophe MorfinNeel SampatJohn Greiner​ I  think this needs to be moved to Machine learning but it looks to be internal only.

jgreiner
13-Aquamarine
(To:ahawaldar-2)

Hi Azim,

Are there any errors or warnings in your Application Log in ThingWorx?

Thanks,

John

Hi ,

My bad there were some issues in my code. After inserting logs I came to know and rectified it.

Thanks,

Azim

Announcements


Top Tags