def test_f_score_7(): assert round( FScore(beta=2)([1], relevant_recommendations=[1, 2, 4, 8]), 2) == 0.29
def test_f_score_6(): assert FScore()([1, 2, 4, 8], relevant_recommendations=[1, 2, 4, 8]) == 1.0
def test_f_score_5(): assert FScore()([1, 2, 3, 4, 5, 6, 7, 8], relevant_recommendations=[1, 2, 4, 8], k=4) == 0.75
def test_f_score_4(): assert round( FScore()([1, 2, 3, 4, 5, 6, 7, 8], relevant_recommendations=[1, 2, 4, 8]), 2) == 0.67
def test_f_score_3(): assert FScore()([1, 2, 3, 4], relevant_recommendations=[1, 2, 4, 8]) == 0.75
def test_f_score_2(): assert round(FScore()([1, 2, 3], relevant_recommendations=[1, 2, 4, 8]), 2) == 0.57