def colwise_accuracy(y_true, y_pred):
    y_pred = y_pred.T
    y_true = y_true.T
    acc_list = []
    for cate in range(0, y_pred.shape[0]):
        acc_list.append(accuracy_score(y_pred[cate], y_true[cate]))
    return (sum(acc_list) / len(acc_list))
def colwise_accuracy(y_true, y_pred):
    y_pred = y_pred.T
    y_true = y_true.T
    acc_list = []
    for cate in range(0, y_pred.shape[0]):
        acc_list.append(accuracy_score(y_pred[cate], y_true[cate]))
    return (sum(acc_list) / len(acc_list))