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

this metric Pixel_Accuracy_Class is wrong #240

Open
ShunZuo-AI opened this issue Sep 24, 2024 · 0 comments
Open

this metric Pixel_Accuracy_Class is wrong #240

ShunZuo-AI opened this issue Sep 24, 2024 · 0 comments

Comments

@ShunZuo-AI
Copy link

def Pixel_Accuracy_Class(self):
    Acc = np.diag(self.confusion_matrix) / self.confusion_matrix.sum(axis=1)
    Acc = np.nanmean(Acc)
    return Acc

this right Acc should be np.diag(self.confusion_matrix) / self.confusion_matrix.sum(axis=0)?

@ShunZuo-AI ShunZuo-AI changed the title this metric Pixel_Accuracy_Class is wrong? this metric Pixel_Accuracy_Class is wrong Sep 24, 2024
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

1 participant