예제 #1
0
 def test_variance_of_true_scores_sparse_matrix(self):
     human_scores = self.human_score_columns
     df_humans = self.data_sparse[human_scores]
     variance_errors_human = 0.5150882
     expected_var_true = 0.769816
     var_true = true_score_variance(df_humans, variance_errors_human)
     assert_almost_equal(var_true, expected_var_true, 7)
예제 #2
0
 def test_variance_of_true_scores_full_matrix(self):
     human_scores = self.human_score_columns
     df_humans = self.data_full[human_scores]
     variance_errors_human = 0.509375
     expected_var_true = 0.7765515
     var_true = true_score_variance(df_humans, variance_errors_human)
     assert_almost_equal(var_true, expected_var_true, 7)
예제 #3
0
 def test_variance_of_true_scores_sparse_matrix_computed_ve(self):
     human_scores = self.human_score_columns
     df_humans = self.data_sparse[human_scores]
     expected_var_true = 0.769816
     var_true = true_score_variance(df_humans)
     assert_almost_equal(var_true, expected_var_true, 7)