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)

Examples

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