seqme.extract_non_dominated

seqme.extract_non_dominated#

seqme.extract_non_dominated(df, metrics=None, *, level=0)[source]#

Extract the non-dominated rows using one or more metrics.

Same behavior as calling seqme.rank followed by seqme.top_k, but improves the performance.

Parameters:
  • df (DataFrame) – Metric dataframe.

  • metrics (Optional[list[str]]) – Metrics for dominance-based comparison. If None, use all metrics in dataframe.

  • level (int) – The tuple index-names level to consider as a group.

Returns:

A subset of the metric dataframe with the non-dominated rows.

Return type:

DataFrame