Scripts
train
Scripts for training models on 17lands datasets.
pool_pack_pick_predictor.py
Train an MLP to predict human MTGA draft picks from the pool and pack of the draft state.
run
Scripts for using trained models to advise MTGA gameplay.
draft_assistant.py
Command line UI for using a trained PickModel to advise an MTGA draft.
- class mtga_ml.scripts.run.draft_assistant.DraftAssistant(model)
Class for maintaining a user description of a draft state.
- Parameters
model (PickModel) – Trained PickModel for advising the draft.
- add_pack(card_name)
Add a card to the pack
- findCardIdx(substr)
Find the card whose name contains substr.
If multiple card names contain substr, searches for an exact match instead.
- help()
Print help string.
- pack_list()
Print all cards in the current pack
- pick(card_name)
Pick a card from the current pack and add it to the pool
- pool_list()
Print all cards in the current pool
- predict()
Print model pick predictions
- rm_pack(card_name)
Remove a card from the current pack
- rm_pool(card_name)
Remove a card from the current pool