예제 #1
0
def the_confidence_weighted_prediction(step, predictions):
    predictions = eval(predictions)
    for i in range(len(world.votes)):
        combined_prediction = combine_predictions(world.votes[i], "confidence weighted")
        assert combined_prediction == predictions[i]
예제 #2
0
def the_plurality_combined_prediction(step, predictions):
    predictions = eval(predictions)
    for i in range(len(world.votes)):
        combined_prediction = combine_predictions(world.votes[i])
        assert combined_prediction == predictions[i]