Extract interpolated records

get_interp(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 interpolating bases

Examples

holes_1d_better %>%
  get_interp() %>%
  head()
#> # A tibble: 6 × 8
#>   basis         index_val info          method        alpha tries  loop    id
#>   <list>            <dbl> <chr>         <chr>         <dbl> <dbl> <dbl> <int>
#> 1 <dbl [5 × 1]>     0.749 interpolation search_better    NA     2     1     1
#> 2 <dbl [5 × 1]>     0.750 interpolation search_better    NA     2     2     2
#> 3 <dbl [5 × 1]>     0.751 interpolation search_better    NA     2     3     3
#> 4 <dbl [5 × 1]>     0.751 interpolation search_better    NA     2     4     4
#> 5 <dbl [5 × 1]>     0.752 interpolation search_better    NA     2     5     5
#> 6 <dbl [5 × 1]>     0.752 interpolation search_better    NA     2     6     6
get_interp(dplyr::bind_rows(holes_1d_better, holes_1d_geo), group = method) %>% head()
#> # A tibble: 6 × 8
#>   basis         index_val info          method        alpha tries  loop    id
#>   <list>            <dbl> <chr>         <chr>         <dbl> <dbl> <dbl> <int>
#> 1 <dbl [5 × 1]>     0.749 interpolation search_better    NA     2     1     1
#> 2 <dbl [5 × 1]>     0.750 interpolation search_better    NA     2     2     2
#> 3 <dbl [5 × 1]>     0.751 interpolation search_better    NA     2     3     3
#> 4 <dbl [5 × 1]>     0.751 interpolation search_better    NA     2     4     4
#> 5 <dbl [5 × 1]>     0.752 interpolation search_better    NA     2     5     5
#> 6 <dbl [5 × 1]>     0.752 interpolation search_better    NA     2     6     6