Skip to main content

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)

Uploaded Source

Built Distribution

ayto-0.1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page