Coder Social home page Coder Social logo

Comments (5)

gianpd avatar gianpd commented on May 14, 2024 2

Hi @qingyun-wu, yes, you right, it is not very common to use f1 score for multiclass tasks. However, sometimes looking to the f1-micro / f1-macro could be required. By very good, I mean that if the dataset is unbalanced a micro f1 should be used more tough than a macro f1, however it could be an unnecessary complication.
Instead, I think the solution proposed by @sonichi should be great. If the task is multiclass f1 shouldn't be a valid option, while micro_f1/macro_f1 yes.

from flaml.

sonichi avatar sonichi commented on May 14, 2024 1

or maybe we should ask users to specify 'micro_f1', 'macro_f1', etc. as metrics.

from flaml.

sonichi avatar sonichi commented on May 14, 2024 1

@qingyun-wu do you agree? If so, I'd encourage @gianpdomiziani to create a PR. Thanks.

from flaml.

qingyun-wu avatar qingyun-wu commented on May 14, 2024 1

I agree. Thanks!

from flaml.

qingyun-wu avatar qingyun-wu commented on May 14, 2024

Hi @gianpdomiziani,

Thanks for reporting this issue. It seems f1 score is not a commonly used metric for multiclass classification tasks. So it is not clear to me how we should properly chose the 'best' metric in this case.

Among the several average options ['micro', 'macro', 'weighted', 'samples'], 'micro', 'macro', 'weighted' all work well. Do you think it is reasonable to just set the average option to be one of these three in the case of the multiclass classification task?

Thank you!

from flaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.