Skip to main content

A Python library for calculating couple probabilites for the TV show *Are You the One?*

Project description

AYTO

PyPI version Python version Code style: black

A Python library for calculating couple probabilities for the TV show Are You the One?.

Installation

pip install ayto

Usage

For a walkthrough of all of ayto's functionality, see the demo notebook.

from ayto import AYTO

guys = ["Albert", "Bill", "Carl"]
girls = ["Daisy", "Emily", "Faith"]

season = AYTO(guys, girls)

# "there are 6 possible scenarios"
print(f"there are {season.num_scenarios} possible scenarios")

# Al and Daisy go to the Truth Booth and get "NO MATCH"
scenarios_left = season.apply_truth_booth("Albert", "Daisy", False)

# "4 scenarios remain"
print(f"{scenarios_left} scenarios remain")

# A matchup ceremony with 1 beam
scenarios_left = season.apply_matchup_ceremony(
    [("Albert", "Emily"), ("Bill", "Daisy"), ("Carl", "Faith")], beams=1
)

# "2 scenarios remain"
print(f"{scenarios_left} scenarios remain")

print(season.probabilities)
#         Albert  Billy  Carl
# Daisy      0.0    0.5   0.5
# Emily      0.5    0.0   0.5
# Faith      0.5    0.5   0.0

season.save("my_season")

# ...later, to restore everything:
loaded_season = AYTO.load("my_season")
print(loaded_season.probabilities)
#         Albert  Billy  Carl
# Daisy      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-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

ayto-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ayto-1.0.1.tar.gz.

File metadata

  • Download URL: ayto-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for ayto-1.0.1.tar.gz
Algorithm Hash digest
SHA256 064cb8e4228db0602360bdae49f1254b1e2e894028c0697bdd5fb8ae2d763e01
MD5 3aa57f745a8f98b02df2d719321f68bd
BLAKE2b-256 7285e6042e15746fc908f01920f687ef4c6a5610697226377e40ab2d625e1efb

See more details on using hashes here.

File details

Details for the file ayto-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ayto-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for ayto-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f9ec69893de8e43c6fa1fe7b468ee47dcecea11831685a9ef884e8f319ece70
MD5 f2f1d21b87bfaccc6ac461cd6c4e09fa
BLAKE2b-256 b9ee5297dfc756649b224778e3329fccb24765f89787c23535104b2edd13c2b6

See more details on using hashes here.

Supported by

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