build_instance_feature: Flatten 'mild_df' data to the instance level

View source: R/build_fm.R

build_instance_featureR Documentation

Flatten mild_df data to the instance level

Description

Flatten mild_df type of data to regular multiple instance data where each instance is a vector by extracting distribution sample quantiles, mean and sd.

Usage

build_instance_feature(
  data,
  qtls = seq(0.05, 0.95, length.out = 10),
  mean = TRUE,
  sd = TRUE
)

Arguments

data

A mild_df object.

qtls

Quantiles to be extracted from each instance empirical distribution.

mean

A logical for whether or not to extract mean.

sd

A logical for whether or not to extract standard deviation.

Value

A summarized data.frame at the instance level.

Author(s)

Yifei Liu

See Also

summarize_samples() for a more general way to make a similar data frame.

Examples

mild_df1 <- generate_mild_df(positive_degree = 3, nbag = 3)
df1 <- build_instance_feature(mild_df1, seq(0.05, 0.95, length.out = 10))


mildsvm documentation built on July 14, 2022, 9:08 a.m.