def the_local_prediction_confidence_is(step, confidence):
    if (isinstance(world.local_prediction, list) or
        isinstance(world.local_prediction, tuple)):
        local_confidence = world.local_prediction[1]
    else:
        local_confidence = world.local_prediction['confidence']
    local_confidence = round(float(local_confidence), 4)
    confidence = round(float(confidence), 4)
    if local_confidence == confidence:
        assert True
    else:
        assert False, "found: %s, expected %s" % (local_confidence, confidence)


#@step(r'the local prediction is "(.*)"')
dataset/ETHPy150Open bigmlcom/python/bigml/tests/compare_predictions_steps.py/the_local_prediction_confidence_is/original