liveBook · Manning

Frequency

As explained in Build AI Drug Discovery Pipelines

Frequency is a tree-ensemble feature-importance measure equal to the number of split operations using a feature across the ensemble.

Frequency measures global feature importance in a tree ensemble by counting how many split operations use each feature across all trees. In XGBoost, it helps identify which molecular descriptors contribute most to distinguishing RNA-binding from protein-binding activity. section 6.4.2

Unlike gain, which averages split improvement, or coverage, which averages affected samples, frequency counts usage. These measures summarize average behavior across the dataset rather than explaining one compound’s prediction; local interpretation is needed for hit-to-lead optimization. section 6.4.2

Figure 6.14 Feature importance of our XGBoost model across gain, coverage, and frequency metrics.

Compare frequency with gain and coverage in the XGBoost feature-importance visualization. section 6.4.2

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Defines the split-count calculation and contrasts it with gain and coverage, but stops short of local prediction explanations.
Examples
Uses an XGBoost model distinguishing RNA-binding from protein-binding activity and a feature-importance plot comparing three metrics.
What it assumes
Assumes tree ensembles, model splits, molecular descriptors, and XGBoost, while defining frequency, gain, and coverage together.
What you can do after
Evaluate global descriptor usage in a retrained XGBoost ensemble and recognize when local explanations are required.
How it connects
Connects feature importance with XGBoost, tree ensembles, gain, coverage, molecular descriptors, and local interpretation.

Also explained in

Compare how 9 books explain frequency →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI Drug Discovery Pipelines. The section links point to the parts of the book it draws on.