M

マクロ平均

マクロ平均は、分類タスクにおいて複数のクラスの全体的な性能を計算します。

の文脈において classification tasks in 人工知能 and 機械学習, マクロ平均 is a method used to evaluate the performance of a model across multiple classes. Unlike マイクロ平均, which aggregates the contributions of all classes to compute the average performance, Macro-Average treats each class equally regardless of its サイズ。

Macro-Averageを計算するには、まず 評価指標です (such as precision, recall, or F1-score) for each class individually. Then, you take the arithmetic mean of these scores across all classes. This approach ensures that each class has an equal weight in the final average, which can be particularly important in scenarios where class distributions are imbalanced.

For instance, consider a scenario with three classes: Class A (100 instances), Class B (10 instances), and Class C (5 instances). A model may perform exceedingly well on Class A and poorly on Classes B and C. If you only look at 全体的な正確さ, it might seem like the model is performing well. However, Macro-Average will highlight the poor performance on the minority classes, providing a more balanced view of the model’s effectiveness.

Macro-Averageは役立ちますが モデルの性能理解 in multi-class settings, it is essential to consider it alongside other metrics, particularly when dealing with imbalanced datasets, to get a comprehensive view of a model’s performance.

コントロール + /