train_mego: Trainer for a surmodel object based on the MEGO algorithm

Description Usage Arguments Examples

Description

Trainer for a surmodel object based on the MEGO algorithm

Usage

1
train_mego(model, niter, optimizer = "gen")

Arguments

model

surmodel object to be trained

niter

integer indicating number of iterations

optimizer

string one of: "gen" (genetic, default), "sa" (simulated annealing) or "ps" (particle swarm)

Examples

1
2
fn <- binh
# model <- build_surmodel(fn, 5, 2) %>% train_mego(1, 'sa')

suropt documentation built on May 2, 2019, 6:02 a.m.

Related to train_mego in suropt...