get_condition
- MPPData.get_condition(desc, cond_params=None)[source]
Get condition based on
desc.For complete description of
desc, seeMPPData.add_conditions().If
descis a list of conditions, return unique one-hot encoded vector combining multiple conditions (only possible when all sub-conditions are one-hot encoded)cond_paramsare modified in place.- Parameters
cond_desc – Conditions to be added.
cond_params (
Optional[MutableMapping[str,Any]]) – Can optionally contain precomputed quantiles or mean/string values. If no values are provided, this will be filled with computed quantiles or mean/string values. This is useful for using the same values to process conditions on e.g. train and test sets.
- Return type
condition vector