Learn R Programming

MapperAlgo (version 1.0.9)

GridSearch: GridSearch searched over a list of interval width and overlap, useful for visualizing the convergence of the Mapper.

Description

GridSearch searched over a list of interval width and overlap, useful for visualizing the convergence of the Mapper.

Usage

GridSearch(
  original_data,
  filter_values,
  label,
  column = "label",
  cover_type = "stride",
  width_vec = c(0.5, 1, 1.5),
  overlap_vec = c(10, 20, 30, 40),
  num_cores = 12,
  out_dir = "mapper_grid_outputs",
  avg = FALSE,
  use_embedding = NULL
)

Value

A folder containing the PNG files of the Mapper visualizations.

Arguments

original_data

Original dataframe, not the filter values.

filter_values

A numeric matrix or data frame of filter values (rows are samples, columns are filter dimensions).

label

A vector of labels for coloring the Mapper nodes.

column

The original column name (use when use_embedding=TRUE).

cover_type

The type of cover to use "stride" or "extension".

width_vec

A vector of interval widths.

overlap_vec

A vector of percent overlaps.

num_cores

Number of cores to use for parallel computing.

out_dir

Directory to save the output.

avg

Whether coloring the nodes by average label or majority label.

use_embedding

Whether to use embedding for coloring (NULL or embedding vector).