pm_eloSimulateTournamentInParallel: pm_eloSimulateTournamentInParallel

Description Usage Arguments Value

Description

Sets up a parallel simulation of a tournament

Usage

 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
)

Arguments

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

Value

A dataframe with winners (simWinner, winnerName) for each match in the Tournament


quietsnooze/pmpackage documentation built on March 7, 2021, 3:50 p.m.