henchman.selection.RandomSelect

class henchman.selection.RandomSelect(names=None, n_feats=0)[source]

Randomly choose a feature set.

__init__(names=None, n_feats=0)[source]

A class for randomly choosing a feature set.

Parameters:
  • names (list[str]) – A list of column names selected. Default is the empty list.
  • n_feats (int) – The number of features to randomly select.

Methods

__init__([names, n_feats]) A class for randomly choosing a feature set.
fit(X[, x]) Randomly choose which features to select.
set_params(**params) Method to functionally assign parameters.
transform(X) Returns a subset of a dataframe.