get_cell_id {HVT} | R Documentation |
To generate cell id for the multivariate data, the data is being projected from n-dimensions to 1-dimension and the cell id is being assigned by ordering these values and finding the corresponding indexes. The output CellID gets appended to the HVT model.
get_cell_id(hvt.results, seed = 123)
hvt.results |
List. A list of hvt.results obtained from the HVT function. |
seed |
Numeric. Random Seed |
Cell ID
Object containing Cell.ID mappings for the given hvt.results list.
Shubhra Prakash <shubhra.prakash@mu-sigma.com>
data(USArrests)
hvt.results <- list()
hvt.results <- HVT(USArrests, n_cells = 15, depth = 1, quant.err = 0.2,
distance_metric = "L1_Norm", error_metric = "mean",
projection.scale = 10, normalize = TRUE, seed = 123,
quant_method="kmeans",diagnose=TRUE)
plotHVT(hvt.results, line.width = c(0.8), color.vec = c('#141B41'),
maxDepth = 1)
get_cell_id (hvt.results)