Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

test_reddit_utils.py 283 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. from src.reddit_utils import calculate_metrics
  2. def test_calculate_metrics():
  3. expected = set(
  4. ["roc_auc", "average_precision", "accuracy", "precision", "recall", "f1"]
  5. )
  6. actual = calculate_metrics([1, 0], [0.5, 0.5], [0, 1]).keys()
  7. assert expected == actual
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...