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

eval.py 600 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  1. from . import shared
  2. def predict_test_set():
  3. print("Loading test data")
  4. X, y = shared.load_data_and_labels(shared.test_processed)
  5. print("Done")
  6. clf = shared.load(shared.classifier_pkl)
  7. return X, y, clf, shared.compute_metrics(clf, X, y, "test")
  8. def main():
  9. X, y, clf, metrics = predict_test_set()
  10. from dagshub import dagshub_logger
  11. with dagshub_logger(metrics_path='test-metrics.csv', should_log_hparams=False) as logger:
  12. logger.log_metrics(metrics)
  13. # For possible interactive use
  14. return X, y, clf, metrics
  15. if __name__ == "__main__":
  16. main()
Tip!

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

Comments

Loading...