arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.11956cs.LGcs.DB
收藏

ptype-cat:推断分类变量的类型和值

ptype-cat: Inferring the Type and Values of Categorical Variables

University of Edinburgh(爱丁堡大学);Alan Turing Institute(艾伦图灵研究所)

Taha Ceritli, Christopher K. I. Williams

摘要:

类型推断是识别数据列中的值的类型的任务,并且在文献中已经被广泛地研究。大多数现有的类型推断方法支持诸如布尔、日期、浮点、整数和字符串等数据类型。然而,这些方法不考虑非布尔分类变量,其中存在两个以上由整数或字符串编码的可能值。因此,这些列被注释为整数或字符串而不是分类的,并且需要由用户手动转换为分类的。本文提出了一种概率类型推断方法,可以识别一般的分类数据类型(包括非布尔变量)。此外,我们通过调整现有的类型推断方法ptype来确定每个分类变量的可能值。结合这些方法,我们提出了ptype-cat,取得了更好的效果比现有的适用的解决方案。

英文摘要:

Type inference is the task of identifying the type of values in a data column and has been studied extensively in the literature. Most existing type inference methods support data types such as Boolean, date, float, integer and string. However, these methods do not consider non-Boolean categorical variables, where there are more than two possible values encoded by integers or strings. Therefore, such columns are annotated either as integer or string rather than categorical, and need to be transformed into categorical manually by the user. In this paper, we propose a probabilistic type inference method that can identify the general categorical data type (including non-Boolean variables). Additionally, we identify the possible values of each categorical variable by adapting the existing type inference method ptype. Combining these methods, we present ptype-cat which achieves better results than existing applicable solutions.

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

↑