cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JMu
Advocate I
Advocate I

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
Mrigankka-MSFT
Power Apps
Power Apps

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

View solution in original post

3 REPLIES 3
Mrigankka-MSFT
Power Apps
Power Apps

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

View solution in original post

HSheild
Super User
Super User

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

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,762)