KaggleNCAA
Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup)
Install / Use
/learn @zachmayer/KaggleNCAAREADME
Kaggle NCAA Bracket Simulator
Simulate the NCAA tournament based on a kaggle-format bracket (with predictions for every possible matchup).
First, re-install the package:
devtools::install_github('zachmayer/kaggleNCAA')
Now load the tournment from a csv
seed_benchmark_men.csv is a simple seed-based benchmark I made. Turn it into a bracket with 4 functions:
parseBracketto load the data from a .csvsimTourneyto simulate the tourney (you can also usewalkTourney). Use at least 1000 simulations (more is better). One day I will parallelize this =DextractBracketto extract a bracket from the simulation resultsprintableBracketto actually print the bracket
(Load my data with data(sample_submission_men, package='kaggleNCAA') if you want to just use the seeds)
set.seed(1)
library('kaggleNCAA')
dat <- parseBracket('seed_benchmark_men.csv', w=0) # w=0 for men
sim <- simTourney(dat, 100, progress=TRUE, w=0) # w=0 for men
bracket <- extractBracket(sim)
printableBracket(bracket)
#> assuming women = 0
If simulation's not your thing (e.g. your predicted probabilities are transitive), you can also "walk" forward through the tournament, which is much faster:
bracket <- walkTourney(dat)
printableBracket(bracket)
#> assuming women = 0
Note in this case that the probabilities associated with the team making it to a given round will be incorrect
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

