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.

 

View solution in original post

Tom_Eering
Frequent Visitor

@AntrodThank you very much exactly what I meant.

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (2,861)