The optimiser can find better basis on the interpolation path, an interruption is implemented to stop further interpolation from the highest point to the target point. This discrepancy is highlighted in the PCA plot. You should not use geodesic search on this function.

get_interrupt(dt, group = NULL, precision = 0.001)

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)

precision

numeric; if the index value of the last interpolating point and the anchor point differ by precision, an interruption is registered

Value

a tibble object containing the target and anchor bases for the iteration when an interruption happens

See also

Examples

holes_1d_better %>% get_interrupt()
#> # A tibble: 6 x 8 #> basis index_val info method alpha tries loop id #> <list> <dbl> <chr> <chr> <dbl> <dbl> <dbl> <chr> #> 1 <dbl[,1] [5 × 1]> 0.752 new_basis search_bett… 0.5 2 6 2 #> 2 <dbl[,1] [5 × 1]> 0.813 new_basis search_bett… 0.49 4 7 4 #> 3 <dbl[,1] [5 × 1]> 0.904 new_basis search_bett… 0.485 5 3 5 #> 4 <dbl[,1] [5 × 1]> 0.753 interpolati… search_bett… NA 2 9 2 #> 5 <dbl[,1] [5 × 1]> 0.866 interpolati… search_bett… NA 4 7 4 #> 6 <dbl[,1] [5 × 1]> 0.914 interpolati… search_bett… NA 5 6 5
holes_1d_geo %>% get_interrupt()
#> interrupt is only implemented for creeping random search (search_better) and simulated annealing (search_better_random)
#> NULL