Applied Mathematics and Nonlinear Sciences
Journal license

Journal

Applied Mathematics and Nonlinear Sciences


Volume
& Issue

Volume 9, Issue 1


Published
on

February 26, 2024


Pages


DOI

Article

Performance Optimization of Machine Learning Algorithms Based on Spark


Authors

Weikang Luo Affiliation:
School of Information Management, Jiangxi University of Finance and Economics, Nanchang, Jiangxi, 330032, China.
, Shenglin Zhang Affiliation:
College of Software Engineering, Guangxi Normal University, Guilin, Guangxi, 541004, China.
and Yinggen Xu Affiliation:
School of Information Management, Jiangxi University of Finance and Economics, Nanchang, Jiangxi, 330032, China.


Abstract

This paper proposes a performance optimization strategy for Spark-based machine learning algorithms in Shuffle and memory data management modules. The Shuffle module is optimized by introducing Observer monitoring module in Spark cluster to achieve task status monitoring and dynamic ShuffleWrite task generation. Meanwhile, an adaptive caching mechanism for RDD data addresses the lack of in-memory data caching. The performance-optimized algorithm performs well in the experiments, with a clustering accuracy of 89% and a response time that is 5% faster than the Random Forest algorithm. In road network traffic state discrimination, the optimized algorithm’s classification decision F-measure value is as high as 99.53%, which is 5.32% higher than that before unoptimization, and the running time is 767 seconds less than that of the unoptimized algorithm when dealing with about 6,880,000 pieces of data, which significantly improves the efficiency and accuracy.


Keywords

Spark, Shuffle, RDD, Machine learning algorithm, 68M11


Citation

Luo, W., Zhang, S., & Xu, Y. (2024). Performance optimization of machine learning algorithms based on spark. Applied Mathematics and Nonlinear Sciences, 9(1). https://doi.org/10.2478/amns-2024-0416

Published by: Engineering Journals

Engineering Journals Logo