design2labels(columndata,
baseline_label=0,
func=lambda x: x > 0.0)
| source code
|
Helper to convert design matrix into a list of labels
Given a design, assign a single label to any given sample
TODO: fix description/naming
- Parameters:
columndata (ColumnData) - Attributes where each known will be considered as a separate
explanatory variable (EV) in the design.
baseline_label - What label to assign for samples where none of EVs was given a value
func (functor) - Function which decides either a value should be considered
|