Skip to main content
QUICK REVIEW

[論文レビュー] Comparative Study on the Performance of Categorical Variable Encoders in Classification and Regression Tasks

Wenbin Zhu, Runwen Qiu|arXiv (Cornell University)|Jan 18, 2024
Machine Learning and Data ClassificationComputer Science被引用数 8
ひとこと要約

本論文は、one-hot エンコーダが ATI モデルの他のエンコーダを模倣できる方法と、ターゲットエンコーダが木構造ベースのモデルに対して優れている理由を、複数のモデルと28データセットにわたって理論的・経験的に分析している。

ABSTRACT

Categorical variables often appear in datasets for classification and regression tasks, and they need to be encoded into numerical values before training. Since many encoders have been developed and can significantly impact performance, choosing the appropriate encoder for a task becomes a time-consuming yet important practical issue. This study broadly classifies machine learning models into three categories: 1) ATI models that implicitly perform affine transformations on inputs, such as multi-layer perceptron neural network; 2) Tree-based models that are based on decision trees, such as random forest; and 3) the rest, such as kNN. Theoretically, we prove that the one-hot encoder is the best choice for ATI models in the sense that it can mimic any other encoders by learning suitable weights from the data. We also explain why the target encoder and its variants are the most suitable encoders for tree-based models. This study conducted comprehensive computational experiments to evaluate 14 encoders, including one-hot and target encoders, along with eight common machine-learning models on 28 datasets. The computational results agree with our theoretical analysis. The findings in this study shed light on how to select the suitable encoder for data scientists in fields such as fraud detection, disease diagnosis, etc.

研究の動機と目的

  • エンコーダとモデルを分類して、エンコーダ-モデルの適合性を理解する。
  • ATI モデルに対してワンホットエンコーディングを普遍的であると理論的に証明する。
  • 木構造ベースのモデルにおいてターゲットエンコーダが有利である理由を説明する。
  • 複数のモデルを用いて28データセット、14エンコーダを実証的に比較する。

提案手法

  • エンコーダをカテゴリレベルを R^l のベクトルへ写す写像として定義する。
  • ATI モデルに対して、one-hot エンコーディングの線形変換が任意のエンコーダを再現できることを証明する。\n
  • 平均サンプル数 per level(ASPL)によるデータ十分性を示す収束挙動を分析する。
  • 木構造ベースのモデル(例:RF および GBDT)に対する平均エンコーダ(ターゲット)エンコーダを理論的にも経験的にも分析する。
  • 14エンコーダと8モデルを28データセットで用いた広範な実験を実施する;性能指標として F1 および RMSE を使用し、相対的な性能差を報告する。

実験結果

リサーチクエスチョン

  • RQ1ワンホットエンコードは ATI モデルに対して他のエンコーダを再現できる条件は何か。
  • RQ2なぜターゲットエンコーダは木構造ベースのモデルにとって特に適しているのか。
  • RQ3ASPL のデータ十分性は実践的なエンコーダの性能にどのように影響するか。
  • RQ4広範なデータセットとモデルの組み合わせでどのエンコーダが最も性能を発揮するか。

主な発見

  • ワンホットエンコーディングは、十分なデータがあれば ATI モデルに対して任意のエンコーダを再現できる。
  • ターゲットエンコーダは、高カード性カテゴリのエンコーディング時により情報量の多い分割を生むため、木構造ベースのモデルに対してしばしば優れた性能を発揮する。
  • ASPL が増えると、ワンホットと最適エンコーダとの性能差は縮小し、より大きな ASPL データセットでゼロに近づく。
  • 平均エンコーダの性能は低ASPLで低下するが、データが増えると改善し、時には最良エンコーダに匹敵することがある。SShrink はデータが不足する設定でわずかな改善を提供する可能性がある。
  • 28データセット全体で、ターゲットエンコーダとそのバリアントは木構造法のトップパフォーマーとして頻繁に現れ、対照的に ATI モデルではワンホットが依然として強い。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。