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

HUB #226: baseline bugfix #227

Merged
merged 1 commit into from
Jan 29, 2024
Merged

Conversation

oushu1zhangxiangxuan1
Copy link
Contributor

定义各难度级别的数量和正确率

counts = {'easy': 248, 'medium': 446, 'hard': 174, 'extra': 166}
accuracies = {'easy': 0.577, 'medium': 0.352, 'hard': 0.201, 'extra': 0.066}

计算总题目数量和总正确数量

total_count = sum(counts.values())
total_correct = sum(count * accuracy for count, accuracy in zip(counts.values(), accuracies.values()))

计算总正确率

overall_accuracy = total_correct / total_count

输出结果

print(f"总正确率为: {overall_accuracy:.3f}")
总正确率为: 0.335

Copy link
Collaborator

@csunny csunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR, LGTM

@csunny csunny merged commit 0f558a3 into eosphoros-ai:main Jan 29, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants