arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.00979cs.LGcs.AIstat.ML
收藏

基于脏分类变量学习的相似性编码

Similarity encoding for learning with dirty categorical variables

LAL, CNRS(核物理研究所,法国国家科学研究中心)

Patricio Cerda, Gaël Varoquaux, Balázs Kégl

摘要:

对于统计学习,表中的分类变量通常被视为离散实体并单独编码为特征向量,例如,使用独热编码。“脏”的非策展数据会产生具有非常高的基数但冗余的分类变量:几个类别反映了同一个实体。在数据库中,这个问题通常通过重复数据删除步骤来解决。我们表明,一个简单的方法,暴露冗余的学习算法带来了显着的收益。我们研究了一个泛化的独热编码,相似性编码,建立跨类别的相似性特征向量。我们对非策展表进行了彻底的经验验证,这是机器学习中很少研究的问题。七个真实世界数据集的结果表明,与已知的类别或字符串编码方法相比,相似性编码在预测方面带来了显着的收益,特别是one-hot编码和字符n-gram包。我们提出了实用的建议,编码脏类别:3克相似性似乎是一个很好的选择,以捕捉形态相似性。对于非常高的基数,降维显著降低了计算成本,性能损失很小:随机投影或选择原型类别的子集仍然优于经典的编码方法。

英文摘要:

For statistical learning, categorical variables in a table are usually considered as discrete entities and encoded separately to feature vectors, e.g., with one-hot encoding. "Dirty" non-curated data gives rise to categorical variables with a very high cardinality but redundancy: several categories reflect the same entity. In databases, this issue is typically solved with a deduplication step. We show that a simple approach that exposes the redundancy to the learning algorithm brings significant gains. We study a generalization of one-hot encoding, similarity encoding, that builds feature vectors from similarities across categories. We perform a thorough empirical validation on non-curated tables, a problem seldom studied in machine learning. Results on seven real-world datasets show that similarity encoding brings significant gains in prediction in comparison with known encoding methods for categories or strings, notably one-hot encoding and bag of character n-grams. We draw practical recommendations for encoding dirty categories: 3-gram similarity appears to be a good choice to capture morphological resemblance. For very high-cardinality, dimensionality reduction significantly reduces the computational cost with little loss in performance: random projections or choosing a subset of prototype categories still outperforms classic encoding approaches.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑