Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance/Similarity #475

Merged
merged 47 commits into from
Jan 6, 2023
Merged

Distance/Similarity #475

merged 47 commits into from
Jan 6, 2023

Conversation

sepandhaghighi
Copy link
Owner

Reference Issues/PRs

#349 #350

What does this implement/fix? Explain your changes.

  • distance method added
  • 30 new distance/similarity added
    1. AMPLE
    2. Anderberg's D
    3. Andres & Marzo's Delta
    4. Baroni-Urbani & Buser I
    5. Baroni-Urbani & Buser II
    6. Batagelj & Bren
    7. Baulieu I
    8. Baulieu II
    9. Baulieu III
    10. Baulieu IV
    11. Baulieu V
    12. Baulieu VI
    13. Baulieu VII
    14. Baulieu VIII
    15. Baulieu IX
    16. Baulieu X
    17. Baulieu XI
    18. Baulieu XII
    19. Baulieu XIII
    20. Baulieu XIV
    21. Baulieu XV
    22. Benini I
    23. Benini II
    24. Canberra
    25. Clement
    26. Consonni & Todeschini I
    27. Consonni & Todeschini II
    28. Consonni & Todeschini III
    29. Consonni & Todeschini IV
    30. Consonni & Todeschini V

Any other comments?

@sepandhaghighi sepandhaghighi added this to the PYCM 3.8 milestone Jan 4, 2023
@sepandhaghighi sepandhaghighi self-assigned this Jan 4, 2023
@sepandhaghighi sepandhaghighi requested review from sadrasabouri and alirezazolanvari and removed request for sadrasabouri January 4, 2023 16:27
"metadata": {},
"outputs": [],
"source": [
"cm = ConfusionMatrix(matrix = {0: {0: 3, 1: 0, 2: 0}, 1: {0: 0, 1: 1, 2: 2}, 2: {0: 2, 1: 1, 2: 3}})"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use this, instead?
cm = ConfusionMatrix(matrix={0: {0: 3, 1: 0, 2: 0}, 1: {0: 0, 1: 1, 2: 2}, 2: {0: 2, 1: 1, 2: 3}})

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in d97768a

}
],
"source": [
"cm.distance(metric = DistanceType.AMPLE)"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use this, instead?
cm.distance(metric=DistanceType.AMPLE)

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in d97768a

Copy link
Collaborator

@sadrasabouri sadrasabouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great.

@alirezazolanvari alirezazolanvari merged commit 7cd8681 into dev Jan 6, 2023
@alirezazolanvari alirezazolanvari deleted the distance branch January 6, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants