import math


def logit2probability(log_odds):
    """
        convert log odds to probability
        params log_odds: a log odds score
        :returns: probability converted from input
        credit: https://sebastiansauer.github.io/convert_logit2prob/
    """
    # convert log odds to odds
    odds = math.exp(log_odds)
    # return probability
    return odds / float(1 + odds)