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