tirank.SCSTpreprocess.is_imbalanced

tirank.SCSTpreprocess.is_imbalanced(bulkClinical, threshold)[source]

Checks if the primary clinical variable is imbalanced.

Parameters:
  • bulkClinical (pd.DataFrame) – DataFrame with clinical data. Assumes the variable of interest is in the first column.

  • threshold (float) – The minimum proportion for a class to be considered ‘balanced’.

Returns:

True if the minority class is below the threshold, False otherwise.

Return type:

bool