import torch


def inverse_logit(predictions: torch.Tensor) -> torch.Tensor:
    """
    Take the inverse of logits.

    Args:
        predictions: outputs of the base models

    Returns:
        a probability tensor
    """
    expo = torch.exp(predictions)
    inputs = expo / (expo + 1)
    return inputs