mlchem.ml.feature_selection.wrappers.generate_combination_cascade

generate_combination_cascade(elements: Iterable, n: int) Iterable[Iterable]

Generate all combinations of elements from size 1 to n.

Parameters:
  • elements (iterable) – Input elements to combine.

  • n (int) – Maximum size of combinations.

Returns:

List of combinations of elements.

Return type:

list of list