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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

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