removeNovelty {HVT}R Documentation

Remove identified novelty cell(s)

Description

This function is used to remove the identified novelty cells.

Usage

removeNovelty(outlier_cells, hvt_results)

Arguments

outlier_cells

Vector. A vector with the cell number of the identified novelty

hvt_results

List. A list having the results of the compressed map i.e. output of trainHVT function

Value

A list of two items

[[1]]

Dataframe of novelty cell(s)

[[2]]

Dataframe without the novelty cell(s) from the dataset used in model training

Author(s)

Shantanu Vaidya <shantanu.vaidya@mu-sigma.com>

See Also

trainHVT
scoreLayeredHVT

Examples

data("EuStockMarkets")
hvt.results <- trainHVT(EuStockMarkets, n_cells = 60, depth = 1, quant.err = 0.1, 
                       distance_metric = "L1_Norm", error_metric = "max",
                       normalize = TRUE,quant_method="kmeans")
identified_Novelty_cells <<- c(2, 10)
output_list <- removeNovelty(identified_Novelty_cells, hvt.results) 
data_with_novelty <- output_list[[1]]
data_without_novelty <- output_list[[2]]                      

[Package HVT version 24.5.1 Index]