准正交编码在机器学习中的应用
Quasi-orthonormal Encoding for Machine Learning Applications
摘要:
大多数机器学习模型,特别是人工神经网络,需要数值数据,而不是分类数据。我们简要介绍了常见的编码方案的优点和缺点。例如,独热编码通常用于具有几个不相关类别的属性,而词嵌入用于具有许多相关类别的属性(例如,话)。两者都不适合编码具有许多不相关类别的属性,例如医疗保健应用中的诊断代码。例如,将独热编码应用于诊断代码可能会导致低样本量问题的极高维数,或者人为地诱导机器学习伪像,更不用说所需计算资源的爆炸了。准正交编码(QOE)填补了这一空白。我们简要地展示了QOE与独热编码的比较。我们提供了如何使用流行的ML库(如Tensorflow和PyTorch)实现QOE的示例代码,以及QOE到MNIST手写样本的演示。
英文摘要:
Most machine learning models, especially artificial neural networks, require numerical, not categorical data. We briefly describe the advantages and disadvantages of common encoding schemes. For example, one-hot encoding is commonly used for attributes with a few unrelated categories and word embeddings for attributes with many related categories (e.g., words). Neither is suitable for encoding attributes with many unrelated categories, such as diagnosis codes in healthcare applications. Application of one-hot encoding for diagnosis codes, for example, can result in extremely high dimensionality with low sample size problems or artificially induce machine learning artifacts, not to mention the explosion of computing resources needed. Quasi-orthonormal encoding (QOE) fills the gap. We briefly show how QOE compares to one-hot encoding. We provide example code of how to implement QOE using popular ML libraries such as Tensorflow and PyTorch and a demonstration of QOE to MNIST handwriting samples.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。