AYTO
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
Metadata
Release files for ayto 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ayto-1.0.1.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ayto-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / ayto-1.0.1.tar.gz
| Download URL | ayto-1.0.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
064cb8e4228db0602360bdae49f1254b1e2e894028c0697bdd5fb8ae2d763e01
|
|
BLAKE2b-256 checksum How to use checksums |
7285e6042e15746fc908f01920f687ef4c6a5610697226377e40ab2d625e1efb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / ayto-1.0.1-py3-none-any.whl
| Download URL | ayto-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f9ec69893de8e43c6fa1fe7b468ee47dcecea11831685a9ef884e8f319ece70
|
|
BLAKE2b-256 checksum How to use checksums |
b9ee5297dfc756649b224778e3329fccb24765f89787c23535104b2edd13c2b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|