ratingslib.ratings.tests.test_rating module
Tests for rating methods, metrics and helper functions
- class TestRatingSystems(methodName='runTest')
Bases:
TestCase
Test for rating methods. The following tests: test_colley, test_massey, test_winloss, test_markov, test_offense_defense, test_rating_movies, and test_aggregation are based on NCAA 2005 data of an isolated group of Atlantic Coast. Conference teams. This example is provided in the book “Who’s #1? The Science of Rating and Ranking” 1. The test_accurate is based on the paper 2. The test for rating_movies is based on the paper 3.
References
- 1
Langville, A. N., & Meyer, C. D. (2012). Who’s# 1?: the science of rating and ranking. Princeton University Press.
- 2
Kyriakides, G., Talattinis, K., & Stephanides, G. (2017). A Hybrid Approach to Predicting Sports Results and an AccuRATE Rating System. International Journal of Applied and Computational Mathematics, 3(1), 239–254.
- 3
Chartier, T., Langville, A., & Simov, P. (2010). March Madness to Movies. Math Horizons, 17, 16–19.
- test_colley()
Test for Colley rating system
- test_massey()
Test for Massey rating system
- test_winloss()
Test for Winloss method
- test_keener()
Test for Keener rating system
- test_elo()
Test for Elo rating system
- test_offense_defense()
Test for Offense-Defense method
- test_markov()
Test for Generalized Markov Method (GeM)
- test_accurate()
Test for Accurate rating system
- test_aggregation()
Test rating aggregation
- test_rating_movies()