Description Usage Arguments Value
Sets up a parallel simulation of a tournament
1 2 3 4 5 6 7 8 9 10 11 12 | pm_eloSimulateTournamentInParallel(
ds,
runs = 10,
eloDBForSim,
matchDBForSim,
keyCols = c("roundNum", "player_name", "opponent_name", "match_date", "Tournament"),
simCols = c("predictions", "simWinner", "winnerName"),
maxTimeSecs = 999999999999,
tournamentName = "default",
resetDatabase = FALSE,
forceSingleThreaded = FALSE
)
|
ds |
A dataframe structured to describe the tournament |
runs |
Number of iterations (default = 10) |
keyCols |
Key columns for reporting results (DO NOT CHANGE FOR NOW) |
simCols |
Key columsn for debugging results (DO NOT CHANGE FOR NOW) |
maxTimeSecs |
Maximum running time before it quites (defulat = a Very Big Number) |
tournamentName |
The name of hte tournament _simulation_ (e.g. 'wimbledon 07') |
resetDatabase |
Overwrite any existing predictions for tournamentName |
forceSingleThreaded |
Force only a single thread to be used |
eloDB |
a dictionary of player ELO scores, or NA to create a new one |
matchDB |
a dictionary of matches a player has played, or NA |
A dataframe with winners (simWinner, winnerName) for each match in the Tournament
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.