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

acc准确率始终是0 #48

Open
james-li opened this issue Mar 29, 2024 · 0 comments
Open

acc准确率始终是0 #48

james-li opened this issue Mar 29, 2024 · 0 comments

Comments

@james-li
Copy link

    def tester(self, inputs, labels, labels_length):
        predict = self.get_features(inputs)
        pred_decode_labels = []
        labels_list = []
        correct_list = []
        error_list = []
        i = 0
        labels = [int(x) for x in labels.tolist()]
        # labels = labels.tolist()

这里labels都是浮点数,所以后面的比较

            if label_res == pred_res:
                correct_list.append(ids)
            else:
                error_list.append(ids)

基本上都是false。

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