basis_guided: Solve for the last basis of a guided tour.

View source: R/0_util.r

basis_guidedR Documentation

Solve for the last basis of a guided tour.

Description

Performs simulated annealing on the index function, solving for it's local extrema. Returns only the last identified basis of the optimization. A truncated, muted extension of tourr::save_history(guided_tour())).

Usage

basis_guided(data, index_f = tourr::holes(), d = 2, ...)

Arguments

data

Numeric matrix or data.frame of the observations.

index_f

The index function to optimize. {tourr} exports holes(), cmass(), and lda_pp(class).

d

Number of dimensions in the projection space.

...

Optional, other arguments to pass to tourr::guided_tour

Value

Numeric matrix of the last basis of a guided tour.

See Also

tourr::guided_tour for annealing arguments.

Other basis producing functions: basis_half_circle(), basis_odp(), basis_olda(), basis_onpp(), basis_pca()

Examples

dat <- scale_sd(wine[, 2:6])
basis_guided(data = dat, index_f = tourr::holes())

basis_guided(data = dat, index_f = tourr::cmass(),
             alpha = .4, cooling = .9, max.tries = 10, n_sample = 4)

spinifex documentation built on March 31, 2022, 9:06 a.m.