Extract the record with the largest index value

get_best(dt, group = NULL)

Arguments

dt

a data object collected by the projection pursuit guided tour optimisation in the tourr package

group

the variable to label different runs of the optimiser(s)

Value

a tibble object containing the best basis found by the optimiser(s)

See also

Examples

dplyr::bind_rows(holes_1d_better, holes_1d_geo) %>% get_best(group = method)
#> # A tibble: 2 x 8 #> # Groups: method [2] #> basis index_val info method alpha tries loop id #> <list> <dbl> <chr> <chr> <dbl> <dbl> <dbl> <int> #> 1 <dbl[,1] [5 × 1… 0.914 interpolati… search_better NA 5 6 55 #> 2 <dbl[,1] [5 × 1… 0.933 interpolati… search_geodes… NA 9 3 152