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

ttributeError: type object 'networkit.community.OverlappingNMIDistance' has no attribute 'Min'“ #1217

Closed
destiny1009 opened this issue May 5, 2024 · 1 comment

Comments

@destiny1009
Copy link

About the code I executed:
nmi_distance = nk.community.OverlappingNMIDistance(normalization=nk.community.Normalization.MAX)
An exception occurred as follows:
ttributeError: type object 'networkit.community.OverlappingNMIDistance' has no attribute 'Min'“
I think there might be a problem in the ommunity.pyx file in this part.
def _validateNormalization(self, _Normalization normalization):
if normalization not in {OverlappingNMIDistance.Min, OverlappingNMIDistance.GeometricMean,
OverlappingNMIDistance.ArithmeticMean, OverlappingNMIDistance.Max, OverlappingNMIDistance.JointEntropy}:
raise ValueError("Error, invalid normalization method")

@PetholzA
Copy link
Contributor

thanks for reporting the issue, the above mentioned PR adresses this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants