We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The function multilabelConfussionMatrix in multilabelMetrics/functions.py is not right, (may be spelling error) The correct version should be
multilabelConfussionMatrix
multilabelMetrics/functions.py
def multilabelConfussionMatrix(y_test, predictions): """ Returns the TP, FP, TN, FN """ TP = np.zeros(y_test.shape[1]) FP = np.zeros(y_test.shape[1]) TN = np.zeros(y_test.shape[1]) FN = np.zeros(y_test.shape[1]) for j in range(y_test.shape[1]): TPaux = 0 FPaux = 0 TNaux = 0 FNaux = 0 for i in range(y_test.shape[0]): if int(y_test[i,j]) == 1: if int(y_test[i,j]) == 1 and int(predictions[i,j]) == 1: TPaux += 1 else: FNaux += 1 else: if int(y_test[i,j]) == 0 and int(predictions[i,j]) == 0: TNaux += 1 else: FPaux += 1 TP[j] = TPaux FP[j] = FPaux TN[j] = TNaux FN[j] = FNaux return TP, FP, TN, FN
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The function
multilabelConfussionMatrix
inmultilabelMetrics/functions.py
is not right, (may be spelling error)The correct version should be
The text was updated successfully, but these errors were encountered: