ConstFilter

class hypex.transformers.ConstFilter(target_roles=None, threshold=0.95, key='')[source]

Bases: Transformer

__init__(target_roles=None, threshold=0.95, key='')[source]

Initialize constants filter of the values which occur more often than defined by threshold.

Parameters:
  • target – The column or columns to be filtered

  • threshold (float) – The maximum acceptable frequency above which we consider the column to be constant