Design and Implementation of Machine Learning Platform Based on Spark
- Author
- TangZhenKun
- Advisor
- LinZuo
- School
- Xiamen University
- Major
- Computer technology
- Classification
- TP181 Automated reasoning,machine learning
- Degree
- Master's thesis
- Year
- 2014
- Downloads
- 52
- Citations
- 0
Abstract
Accompanied by the development of technologies of cloud computing and distributed cluster, the concept of big data was extended widely and deeply in volume and value, and machine learning that plays an essential role in exploring big data was attracted unprecedented attention in recent years. Traditional data mining algorithms is incapable to deal with massive dataset. MapReduce has been successfully applied to many big data problems, however, it lacks the ability to efficiently support parallelized, iterative machine learning algorithms. To address the above problems, we propose a machine learning platform based on the emerging Spark framework, not only to process massive data efficiently, but also with a favorable scalability, which can satisfy the demand of many kinds of machine learning tasks.The contribution of this thesis are as follows:We develop a variety of machine learning algorithms based on Spark and theory of large scale machine learning, including parallelized linear regression, support vector machine, KMeans, matrix factorization and PageRank algorithms based on graph computing model, and KMeans in dataflow to achieve both high utility, scalability and efficiency.Some strategies are used in the implementation of the platform to improve and optimize performance for large scale datasets. For example, Bagging strategy based on ensemble learning theory are adopted to improve the stability of the model, and sub-gradient model optimization to promote the efficiency of model computation. And a variant of matrix factorization algorithm based on graph computing framework are suitable for extremely sparse ratings matrix in massive datasets. In addition, we implement algorithms with objected-oriented design methods for expendability. Design patterns such as Factory pattern and Strategy pattern are encapsulated in the framework.Followed the design of Lambda architecture, the platform are divided into three hierarchy. They are batch layer, service layer and dataflow layer. The batch layer are designed by the hybrid of Spark and Hadoop to model batch dataset. The service layer constructs indexes of the batch model to support parallel real-time requests. And the dataflow layer are mainly emphasized on streaming computation to model real-time dataset. The incoming requests will combine the batch and dataflow results into the final output.The performance of our algorithms in platform are verified by experiment results. Compared with serial algorithm on single computer and algorithms based on MapReduce, out methods have shown significant improvement in runtime, speedup ratio and throughput.
Table of contents
Abstract 4-5
Abstract 5-11
first chapter 11-21
1.1 Background 11-14
Situation 1.2 Research 14-17
1.3 research purpose and meaning 17-19
1.4 The main work of this article and article structure 19-21
The second chapter related technologies 21-33
2.1 cloud computing 21-24
2.2 big Data 24-25
2.3 data mining platform 25-31
2.4 streaming data mining 31-32
2.5 Chapter Summary 32-33
Chapter III machine learning platform overall architecture 33-37
3.1 Spark architecture ideas 33-35
3.2 overall platform architecture 35-36
3.3 chapter Summary 36-37
Chapter IV machine learning algorithm design and implementation 37-63
4.1 design principles 37-40
4.1.1 practicality 37 <br / > 4.1.2 object-oriented package 37-40
4.1.3 parallel Optimization 40
4.2 regression - parallel Linear Regression 40-43
4.3 classification - parallel Support Vector Machine 43-46
4.4 clustering - parallel KMeans 46-49
4.5 Recommended - matrix decomposition 49-54
4.6 graph algorithms -PageRank 54-59
4.7 data flow algorithm 59-62
4.8 Chapter Summary 62-63
Chapter V machine Learning algorithm assessment results 63-73
5.1 evaluation index 63-65
5.1.1 average running time 63
5.1.2 speedup 63-64
5.1.3 scalability 64
5.1.4 throughput 64-65
5.2 experimental environment 65-66
5.3 assess the comparative 66-71
5.3.1 operating performance comparison 66-69
5.3.2 speedup 69
5.3.3 throughput 69-71
5.4 Spark performance optimization summary 71-72
5.5 Chapter Summary 72-73
sixth chapter summary and Prospect 73-75
6.1 summarizes 73
6.2 Looking 73-75
references 75-80
published during the master's degree thesis and research situation 80-81
Thanks 81
Related dissertations
- Security Detection System Based on the Android Paltform
- Differentially Private Empirical Risk Minimization Algorithm for β-mixing Sequences
- Research on Graph-based Semi-supervised Algorithms and Its Applications
- Embedding Machine Learning Algorithm into Weka
- Learning Mechanism Resrearch in Control and Identification Problems
- Research on Spam Filtering Based on Social Network
- Shared Subspace Learning for Multi-view Data Analysis
- Research of Distributed Support Vector Machine (SVM) Based on Hadoop Cloud Platform
- Research on Sparse Kernel Regression Modelling Methods
- Extracting Informative Semantic Contents from Web Pages
- Research on Technology of Encrypted Traffic Identification Based on Traffic Features
- Research on Video Semantic Extraction
- Research on Spam Filtering Technology Based on Social Network
- The Research and Implementation of Malicious Web Pages Detection from Search Engine Based on Decision Tree
- The Development and Realization of Scenario Thesaurus Based on Machine Learning
- The Research of Microblogging Short Text Oriented Sentiment Analysis
- Research on Microblog Sentiment Analysis Based on Semi-supervised Learning
- Web-based Approach for Automatic Image Annotation
- The Reconstruction System for Highly Compressed Image
- Full Reference Image Quality Assessment Via Sparse Representation