Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def perceptive_probability(probability, average="median"): | |
""" This function translates a probability [0;100] to a human readable string (phrase). | |
The readable probabilities have been computed from data taken from the | |
following github repository: https://github.com/zonination/perceptions/ | |
The repository contains a poll where people assigned a numerical probability | |
to phrases. This data was used to find different types of averages of the | |
distributions for each phrase. |