mild: Create a mild object

View source: R/mild.R

mildR Documentation

Create a mild object

Description

Create a mild object, usually used as a response variable in a model formula.

Usage

mild(bag_label, bag_name, instance_name)

Arguments

bag_label

The bag label or response, recorded as 0 = negative, 1 = positive.

bag_name

A unique bag identifier for each instance.

instance_name

A unique instance identifier for each sample.

Value

An object of class mild. Currently, no methods are implemented for this.

Author(s)

Sean Kent

See Also

Other multiple instance formula helper functions: mi()

Examples


mil_data <- generate_mild_df(positive_degree = 3, nbag = 10)
with(mil_data, head(mild(bag_label, bag_name, instance_name)))
df <- get_all_vars(mild(bag_label, bag_name) ~ X1 + X2, data = mil_data)
head(df)


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