column_importance_sorter_dict#
- column_importance_sorter_dict(cols_dict: Dict[Hashable, Any], dataset: Dataset, feature_importances: Optional[Series] = None, n_top: int = 10) Dict [source]#
Return the dict of columns sorted and limited by feature importance.
- Parameters
- cols_dictt.Dict[Hashable, t.Any]
dict where columns are the keys
- datasettabular.Dataset
dataset used to fit the model
- feature_importancest.Optional[pd.Series] , default: None
feature importance normalized to 0-1 indexed by feature names
- n_topint , default: 10
amount of columns to show ordered by feature importance (date, index, label are first)
- Returns
- Dict
the dict of columns sorted and limited by feature importance.