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

多进程数据分类

Data Classification With Multiprocessing

The Ohio State University(俄亥俄州立大学)

Anuja Dixit, Shreya Byreddy, Guanqun Song, Ting Zhu

AI总结:

本文提出用Python多进程并行训练不同超参数的分类算法并集成结果,以减少执行时间并提高预测准确性,实验验证了KNN、SVM、随机森林和决策树的有效性。

摘要:

分类是机器学习(ML)中最重要的任务之一,随着人工智能(AI)的近期发展,寻找高效的实现方式变得尤为重要。通常,分类算法的选择取决于其所处理的数据,而算法的准确性则取决于其调优所用的超参数。一种方法是通过串行执行不同超参数下的算法来检查其准确性,然后选择能给出最高准确性的参数以预测最终输出。本文提出了另一种方法,即并行地以不同超参数训练算法,以减少执行时间。最后,将所有训练得到的算法变体的结果进行集成,以利用并行性并提高预测准确性。使用Python多进程来测试这一假设,涉及不同的分类算法,如K近邻(KNN)、支持向量机(SVM)、随机森林和决策树,并考察影响并行性的因素。集成输出考虑所有进程的预测,最终类别由预测次数最多的进程决定。这样做提高了预测的可靠性。我们得出结论:集成提高了所选算法的准确性,而多进程减少了执行时间。

英文摘要:

Classification is one of the most important tasks in Machine Learning (ML) and with recent advancements in artificial intelligence (AI) it is important to find efficient ways to implement it. Generally, the choice of classification algorithm depends on the data it is dealing with, and accuracy of the algorithm depends on the hyperparameters it is tuned with. One way is to check the accuracy of the algorithms by executing it with different hyperparameters serially and then selecting the parameters that give the highest accuracy to predict the final output. This paper proposes another way where the algorithm is parallelly trained with different hyperparameters to reduce the execution time. In the end, results from all the trained variations of the algorithms are ensembled to exploit the parallelism and improve the accuracy of prediction. Python multiprocessing is used to test this hypothesis with different classification algorithms such as K-Nearest Neighbors (KNN), Support Vector Machines (SVM), random forest and decision tree and reviews factors affecting parallelism. Ensembled output considers the predictions from all processes and final class is the one predicted by maximum number of processes. Doing this increases the reliability of predictions. We conclude that ensembling improves accuracy and multiprocessing reduces execution time for selected algorithms.

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

↑