Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:Scikit learn contrib Imbalanced learn Index Balanced Accuracy

From Leeroopedia


Knowledge Sources
Domains Machine_Learning, Model_Evaluation, Imbalanced_Learning
Last Updated 2026-02-09 03:00 GMT

Overview

A meta-metric that adjusts any classification scoring function by weighting it with the dominance relationship between sensitivity and specificity, penalizing classifiers that favor one class over another.

Description

The Index Balanced Accuracy (IBA) wraps an existing metric (like geometric mean or accuracy) and adjusts it based on the dominance factor: the difference between sensitivity and specificity. A classifier that achieves high scores by favoring one class will be penalized. The adjustment formula is:

IBA=(1+α×dominance)×metricp

Where dominance = sensitivity - specificity, alpha is a weighting factor, and p = 2 if squared=True (default).

Usage

Use this principle to adjust any metric for class dominance bias. Apply it as a decorator/wrapper around geometric_mean_score or other metrics.

Theoretical Basis

IBA(α)=(1+α⋅(sensitivity−specificity))⋅metric2

When the classifier has equal sensitivity and specificity (no dominance), IBA equals the squared metric. When there is class dominance, IBA is adjusted proportionally.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment