cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JMu
Level: Powered On

Using AI Builder Binary Classification - How/when to get the results

Hi,

 

I have created a new Binary Classification Model and published it. I don't understand how to actually use it to predict the outcome?

 

I have created a new view to display the fields like instructed in 

https://docs.microsoft.com/en-us/ai-builder/binary-classification-model-driven-app

The fields remain empty. If I create a new record only the option set field gets a value, but that comes from the default value set in customizations and not from the model. I couldn't find any documentation about how/when these fields should be updated.

 

I also checked the documentation on Flow side but it suggests that in case of Binary clasification the flow should be triggered when the prediction is updated but how is that done?

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff Mrigankka-MSFT
PowerApps Staff

Re: Using AI Builder Binary Classification - How/when to get the results

Hello,

 

Please verify that you have null values in the outcome/Label column in the CDS entity. The prediction is only done for null values. 

 

I will recommend trying the sample data as an example 

https://docs.microsoft.com/en-us/ai-builder/binary-classification-data-prep

 

Thanks

Mrigankka

3 REPLIES 3
PowerApps Staff Mrigankka-MSFT
PowerApps Staff

Re: Using AI Builder Binary Classification - How/when to get the results

Hello,

 

Please verify that you have null values in the outcome/Label column in the CDS entity. The prediction is only done for null values. 

 

I will recommend trying the sample data as an example 

https://docs.microsoft.com/en-us/ai-builder/binary-classification-data-prep

 

Thanks

Mrigankka

HSheild
Level 8

Re: Using AI Builder Binary Classification - How/when to get the results

Hi @JMu 

 

I have been looking into this also, it's not completely straight forward.  I wonder if you have done what I did initially and are looking at the wrong field for the AI Builder output?

 

Like @Mrigankka-MSFT suggested, I used the Online Shopper Intention sample data and managed to get it working.  AI Builder seems to create 3 new fields on the entity that are prefixed with aib_.  In my screenshots below the Revenue (Label) field is the field that I have chosen from the original data model to be predicted.  This field is used to train the model but AI Builder does not output to this field.  The aib_revenue - predicted field is the field that is created and populated by AI Builder.

 

For me, the results were populated almost instantly.

 

I hope this helps.  If it doesn't help, do you want to post some screenshots?

 

Model driven app view with results

 

AI Builder - Binary Classification Output.PNG

 

Published model showing the name of the output field

Published Model.PNG

JMu
Level: Powered On

Re: Using AI Builder Binary Classification - How/when to get the results

Thanks, the issue was that I didn't have null values in the outcome fields.

 

I used XRMToolBox - Bulk Data Updater to set the values as null, then retrained and republished my custom AI model. Now I got the results for the test rows.

 

As this is a preview there seems to be still some work to do to make the feature usable in model driven apps. Now one cannot create a new record with null values in the outcome field as the platform enforces the default value for the two-options fields. Though, I havent checked if you can create record with null value using Microsoft Flow and get the prediction results that way.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 59 members 4,368 guests
Please welcome our newest community members: