聚类 K-Means 代价

🎯 聚类 K-Means 代价

估算 K-Means 聚类的惯性 inertia。

📐 计算公式与说明

Inertia ≈ ΣΣ||x − μ||²

Inertia 越小簇内越紧密。