web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using AI Builder Binar...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?

Categories:
I have the same question (0)
  • Verified answer
    Mrigankka-MSFT Profile Picture
    Microsoft Employee on at

    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

  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @Anonymous 

     

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard