mmc.Hierarchy.get_clf()

Hierarchy.get_clf(name, base=False)

Gets the classifier and feature names of a given node. If base, returns base estimator

Parameters:
  • name (str) – The name of the classification node to query

  • base (bool (default: False)) – Whether to always return the base estimator (RandomForest) or potentially return the CalibrationCV if calibration was performed

Return type:

Either a random forest classifier or its base estimator and a list of features used in classification.