tumourkit.utils.classification.fit_column_normalizer

tumourkit.utils.classification.fit_column_normalizer(node_dir: str, names: List[str], remove_prior: bool | None = False, remove_morph: bool | None = False, enable_background: bool | None = False) StandardScaler

Fits a StandardScaler object to the input data and returns it.

Parameters:
  • node_dir (str) – The directory containing node data files.

  • names (List[str]) – A list of node names to read from the node directory.

  • remove_prior (Optional[bool]) – If True, hovernet probabilites are ignored.

  • remove_morph (Optional[bool]) – If True, morphological features are removed.

Returns:

A StandardScaler object fitted to the input data.

Return type:

StandardScaler