A Python library for calculating couple probabilites for the TV show *Are You the One?*
Project description
AYTO
A Python library for calculating couple probabilities for the TV show Are You the One?.
Installation
pip install ayto
Usage
from ayto import AYTO
guys = ["Al", "Bill", "Carl"]
girls = ["Daisy", "Emily", "Faith"]
season = AYTO(guys, girls)
# "there are 6 possible scenarios"
print(f"there are {len(season.scenarios)} possible scenarios")
# Al and Daphne go to the Truth Booth and get "NO MATCH"
season.apply_truth_booth("Al", "Daphne", False)
# "4 scenarios remain"
print(f"{len(season.scenarios)} scenarios remain")
# A matchup ceremony with 1 beam
season.apply_matchup_ceremony(
[("Al", "Emily"), ("Bill", "Daisy"), ("Carl", "Faith")], beams=1
)
# "2 scenarios remain"
print(f"{len(season.scenarios)} scenarios remain")
# Calculate couple probabilities
season.calc_probs()
print(season.probs)
# Albert Billy Carl
# Daphne 0.0 0.5 0.5
# Emily 0.5 0.0 0.5
# Faith 0.5 0.5 0.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ayto-0.1.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
ayto-0.1.0-py3-none-any.whl
(4.7 kB
view hashes)