group_lasso package

Submodules

group_lasso.utils module

group_lasso.utils.extract_ohe_groups(onehot_encoder)[source]

Extract a vector with group indices from a scikit-learn OneHotEncoder

Parameters

onehot_encoder (sklearn.preprocessing.OneHotEncoder) –

Returns

A group-vector that can be used with the group lasso regularised linear models.

Return type

np.ndarray

Module contents

Group lasso regularised linear models.