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?
Solved! Go to Solution.
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:
Formulas I used in the condition action are:
item()['confidence']
variables('MaxConfidence')['confidence']
Hope that helps.
Thanks.
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:
Formulas I used in the condition action are:
item()['confidence']
variables('MaxConfidence')['confidence']
Hope that helps.
Thanks.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.