arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.00201cs.LG
收藏

基于逻辑回归的特征选择实验

An Experiment on Feature Selection using Logistic Regression

New Mexico Institute of Mining and Technology(新墨西哥矿业技术学院)

Raisa Islam, Subhasish Mazumdar, Rakibul Islam

AI总结:

本研究基于逻辑回归的L1、L2正则化开展特征选择实验,在CIC-IDS2018数据集上验证了两种正则化选特征后模型准确率无显著差异,且二者交集的小规模特征集在复杂模型上仍能保持接近的准确率。

摘要:

在监督机器学习中,特征选择通过潜在提升可解释性以及计算时间、准确率相关指标衡量的性能,发挥着十分重要的作用。本文研究了一种基于与逻辑回归(LR)相关的经典L1和L2正则化策略的特征选择方法。众所周知,作为权重的学习所得系数可用于对特征排序。我们的方法是综合L1和L2正则化的结果。实验中,我们选择了CIC-IDS2018数据集,部分原因是其规模较大,同时该数据集存在两个难以区分的问题类别。我们先报告排除其中一个类别的结果,再报告包含该类别的结果。我们先用L1对特征排序,再用L2排序,随后针对两种排序结果,通过改变特征集规模,比较了带L1正则化的逻辑回归(LR+L1)与带L2正则化的逻辑回归(LR+L2)的性能。我们发现,一旦特征集选定,两种方法的准确率无显著差异。我们选择了一种综合方案,即仅保留同时出现在L1和L2所得特征集中的特征,并在决策树、随机森林等更复杂的模型上进行了实验,观察到尽管特征集规模很小,准确率却十分接近。此外,我们还报告了准确率、精确率、召回率和f1-score等标准指标。

英文摘要:

In supervised machine learning, feature selection plays a very important role by potentially enhancing explainability and performance as measured by computing time and accuracy-related metrics. In this paper, we investigate a method for feature selection based on the well-known L1 and L2 regularization strategies associated with logistic regression (LR). It is well known that the learned coefficients, which serve as weights, can be used to rank the features. Our approach is to synthesize the findings of L1 and L2 regularization. For our experiment, we chose the CIC-IDS2018 dataset owing partly to its size and also to the existence of two problematic classes that are hard to separate. We report first with the exclusion of one of them and then with its inclusion. We ranked features first with L1 and then with L2, and then compared logistic regression with L1 (LR+L1) against that with L2 (LR+L2) by varying the sizes of the feature sets for each of the two rankings. We found no significant difference in accuracy between the two methods once the feature set is selected. We chose a synthesis, i.e., only those features that were present in both the sets obtained from L1 and that from L2, and experimented with it on more complex models like Decision Tree and Random Forest and observed that the accuracy was very close in spite of the small size of the feature set. Additionally, we also report on the standard metrics: accuracy, precision, recall, and f1-score.

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

↑