build_instance_feature {mildsvm} | R 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 |
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))
[Package mildsvm version 0.4.0 Index]