SegmentGaleShapley

class SegmentGaleShapley(name: str, ranked_candidates: List[str])[source]

Bases: etna.transforms.feature_selection.gale_shapley.BaseGaleShapley

Class for segment member of Gale-Shapley matching.

Init SegmentGaleShapley.

Parameters
  • name (str) – name of segment

  • ranked_candidates (List[str]) – list of features sorted descending by importance

Inherited-members

Methods

get_next_candidate()

Get name of the next feature to try.

reset_tmp_match()

Break tmp current.

set_params(**params)

Return new object instance with modified parameters.

to_dict()

Collect all information about etna object in dict.

update_tmp_match(name)

Create match with given feature.

get_next_candidate() Optional[str][source]

Get name of the next feature to try.

Returns

name of feature

Return type

name

update_tmp_match(name: str)[source]

Create match with given feature.

Parameters

name (str) – name of feature to match