Skip to content

Add 'beta=1' parameter to v_measure_score #13595

Closed

Description

@ivsanro1

Currently, there is no way to set weight to Homogeneity and Completeness when calculating the V-Measure score.

As the paper states (A. Rosenberg, ‎2007), so as the F1-Score is to Precision and Recall, V-Measure score is the harmonic mean of Homogeneity and Completeness. However, we have the function fbeta_score to calculate the Fb-Score, but (as far as I know) we do not have a way of calculating a weighted V-Measure score.

Options:
Add beta=1 parameter to v_measure_score function, where beta < 1 renders more weight to Homogeneity, while beta > 1 gives more weight to Completeness.
Add new function v_beta_measure_score in order to keep it separated from the original function, just as fbeta_score is separated from f1_score

Activity

  1. jnothman commented on Apr 8, 2019

    @jnothman
    Member

    I'm okay with adding beta to v_measure. I don't think we need to add another function.

  2. jnothman commented on Apr 8, 2019

    @jnothman
    Member

    Would you like to submit a pull request @ivsanro1, or should we open this to other contributors?

  3. ivsanro1 commented on Apr 9, 2019

    @ivsanro1
    Author

    I would like to contribute to the project, but I do not have the implementation yet, nor I have contributed to any open source project before, so I do not know what would be the best option. I could implement it when I have some spare time, but if it is important, I would not mind if you opened it to other contributors. As you think it's preferable.

  4. jnothman commented on Apr 9, 2019

    @jnothman
    Member

    I don't think there's any great hurry here. You're welcome to ask for help, or to pass it on to the crowd, whenever you like.

  5. scouvreur commented on Apr 9, 2019

    @scouvreur
    Contributor

    Hi @ivsanro1 @jnothman - could I help with this issue ? Would you like me to submit a PR ?

  6. ivsanro1 commented on Apr 9, 2019

    @ivsanro1
    Author

    @scouvreur Sure, feel free to submit the PR!

  7. scouvreur commented on Apr 10, 2019

    @scouvreur
    Contributor

    Sure @ivsanro1, I will mention you in the PR so you can also give your feedback and comments. Just to check, the paper you are referring to is "V-Measure: A conditional entropy-based external cluster evaluation measure" (A. Rosenthal et al.) mentioned in the v_measure docs ?

  8. thomasjpfan commented on Oct 26, 2019

    @thomasjpfan
    Member

    Closing because issue was resolved in #13607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions