cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tom_Eering
Frequent Visitor

Highest Classification Score

Hi,

 

I have made a AI model that classifies text, this classification is used further in a flow.

Sometimes a text gets 2 classifications. When this happens the step comes in a "for each " block.

 

Is it possible to only use the highest score as classification. By setting it as variable for example? 

1 ACCEPTED SOLUTION

Accepted Solutions
Antrod
Microsoft
Microsoft

Hi @Tom_Eering,

 

Using variables and conditions you should be able to achieve that. What you can do is store the highest confidence with the associated classification in an object and update it if current confidence value if higher that the stored value:

Antrod_0-1641912796458.png

Antrod_1-1641912826025.png

 

Formulas I used in the condition action are:

item()['confidence']

variables('MaxConfidence')['confidence']

 

Hope that helps.

 

Thanks.

 

View solution in original post

2 REPLIES 2
Antrod
Microsoft
Microsoft

Hi @Tom_Eering,

 

Using variables and conditions you should be able to achieve that. What you can do is store the highest confidence with the associated classification in an object and update it if current confidence value if higher that the stored value:

Antrod_0-1641912796458.png

Antrod_1-1641912826025.png

 

Formulas I used in the condition action are:

item()['confidence']

variables('MaxConfidence')['confidence']

 

Hope that helps.

 

Thanks.

 

Tom_Eering
Frequent Visitor

@AntrodThank you very much exactly what I meant.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (4,154)