In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

how is F1 score calculated in the model comparison tool report?

Gualigee
8 - Asteroid

Hi 

 

My calculation of recall matched the model comparison tool report, but F1 did not. 

where did I go wrong?

 

I attached my calculation for your reference. 

 

Thanks!

2 REPLIES 2
AngelosPachis
16 - Nebula

Hi @Gualigee ,

 

The model comparison tool is a macro, so you can open it up to look what's under the hood; you can do that by right-clicking on the tool itself and then select open macro

 

AngelosPachis_0-1652800978728.png

 

Now in the macro it seems that all calcs are carried out in an R tool. You can look at the code to learn more about the formula used for the F1 score (attaching a screenshot for your convenience)

 

AngelosPachis_1-1652801067616.png

 

Hope that helps,

Angelos

Gualigee
8 - Asteroid

Thank you @AngelosPachis  for letting me know it is a macro. Actually, I wonder how F1 is mathematically calculated. Column M and Column N in the attached excel is how I calculated F1 but it does not match the results in the model comparison report. Can you please advise? Thanks. 

 

Labels
Top Solution Authors