Predicting gender by the first name is not a simple task. In many applications, especially in the natural language processing (NLP) field, this task may be necessary, mainly when considering foreign names. In this paper, we examined and implemented several machine learning algorithms, such as extra trees, KNN, Naive Bayes, SVM, random forest, gradient boosting, light GBM, logistic regression, ridge classifier, and deep neural network models, such as MLP, RNN, GRU, CNN, and BiLSTM, to classify gender through the first name. A dataset of Brazilian names is used to train and evaluate the models. We analyzed the accuracy, recall, precision, f1 score, and confusion matrix to measure the models' performances. The results indicate that the gender prediction can be performed from the feature extraction strategy looking at the names as a set of strings. Some models accurately predict gender in more than 95% of the cases. The recurrent models overcome the feedforward models in this binary classification problem.
Inferring gender from name: a large scale performance evaluation study
Columbia Business School, Columbia University(哥伦比亚大学商学院);Data Science Institute, Columbia University(哥伦比亚大学数据科学研究所);Department of Sociology, Columbia University(哥伦比亚大学社会学系)
SEGAA: A Unified Approach to Predicting Age, Gender, and Emotion in Speech
School of Computer Science and Engineering(计算机科学与工程学院);Vellore Institute of Technology(韦洛尔理工学院);School of Electronics Engineering(电子工程学院);Voice Intelligence Group(语音智能集团);Samsung R&D Institute(三星研发研究院)
GG-BBQ: German Gender Bias Benchmark for Question Answering
Fraunhofer Institute for Intelligent Analysis and Information Systems(弗劳恩霍夫智能分析与信息系统研究所);Lamarr Institute for Machine Learning and Artificial Intelligence(拉马尔机器学习与人工智能研究所);Bonn-Rhein-Sieg University of Applied Sciences(波恩-莱茵-锡格应用科学大学)
A General Path-Based Representation for Predicting Program Properties
Technion(以色列理工学院);University of Washington(华盛顿大学)
预测程序属性(如名称或表达式类型)有着广泛的应用。它可以减轻编程任务并提高程序员的生产力。从程序中学习的一个主要挑战是$\textit{how to represent programs in a way that facilitates effective learning}$。我们提出了一个$\textit{general path-based representation}$从程序学习。我们的表示是纯粹的语法和自动提取。其主要思想是用抽象语法树(AST)中的路径来表示程序。这允许学习模型利用代码的结构化本质,而不是将其视为一个扁平的令牌序列。我们证明了这种表示是通用的,并且可以:(i)覆盖不同的预测任务,(ii)驱动不同的学习算法(用于生成和判别模型),以及(iii)跨不同的程序设计语言工作。我们评估我们的方法预测变量名,方法名和完整类型的任务。我们使用我们的表示来驱动基于CRF和基于word2vec的学习,用于四种语言的程序:JavaScript,Java,Python和C\#。我们的评估表明,我们的方法获得更好的结果比特定于任务的手工制作的表示在不同的任务和程序设计语言。