optimise_params: Optimise AFLELO Params

Description Usage Arguments Value Examples

View source: R/optimise.R

Description

Attempt to find an optimal set of AFLELO Params using a genetic algorithm

Usage

1
2
optimise_params(matches, start_eval = 2000, end_eval = 2016, n = 100,
  prop_new = 0.1, generations = 10, pred_weight = 0.8, n_cores = 1)

Arguments

matches

data.frame of matches for training and evaluation

start_eval

start season for calculating fitness

end_eval

end season for calculating fitness

n

population size

prop_new

proportion of new individuals added at each generation

generations

number of generations

pred_weight

weight given to prediction accuracy when calculating fitness

n_cores

number of cores to use

Value

list of data.frames describing parameters and fitness, one for each generation

Examples

1
2
3
data("matches")
optimise_params(matches, start_eval = 1997, end_eval = 1998, n = 5,
                generations = 1)

lazappi/aflelo documentation built on May 17, 2019, 7:30 p.m.