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

Request the full text

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

  1. Security Detection System Based on the Android Paltform
    ChenZuo ·Wuhan University of Technology ·2013 ·Master's thesis
  2. Differentially Private Empirical Risk Minimization Algorithm for β-mixing Sequences
    ZuoHuiZuo ·Hubei University ·2013 ·Master's thesis
  3. Research on Graph-based Semi-supervised Algorithms and Its Applications
    CaiXianFa ·South China University of Technology ·2013 ·Doctoral dissertation
  4. Embedding Machine Learning Algorithm into Weka
  5. Learning Mechanism Resrearch in Control and Identification Problems
    WangJiaSen ·Zhejiang University ·2014 ·Master's thesis
  6. Research on Spam Filtering Based on Social Network
  7. Shared Subspace Learning for Multi-view Data Analysis
    DuLinLin ·Beijing Jiaotong University ·2014 ·Master's thesis
  8. Research of Distributed Support Vector Machine (SVM) Based on Hadoop Cloud Platform
    NiuKe ·Shanxi Normal University ·2014 ·Master's thesis
  9. Research on Sparse Kernel Regression Modelling Methods
    WangLiMan ·Central China Normal University ·2014 ·Master's thesis
  10. Extracting Informative Semantic Contents from Web Pages
    HeZheng ·East China Normal University ·2013 ·Master's thesis
  11. Research on Technology of Encrypted Traffic Identification Based on Traffic Features
    ZhangBo ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Research on Video Semantic Extraction
  13. Research on Spam Filtering Technology Based on Social Network
  14. The Research and Implementation of Malicious Web Pages Detection from Search Engine Based on Decision Tree
    ZhouHao ·Hunan University ·2013 ·Master's thesis
  15. The Development and Realization of Scenario Thesaurus Based on Machine Learning
    DiZuo ·South China University of Technology ·2013 ·Master's thesis
  16. The Research of Microblogging Short Text Oriented Sentiment Analysis
    LiuZuo ·Wuhan University ·2013 ·Doctoral dissertation
  17. Research on Microblog Sentiment Analysis Based on Semi-supervised Learning
  18. Web-based Approach for Automatic Image Annotation
    HuBaoTian ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. The Reconstruction System for Highly Compressed Image
  20. Full Reference Image Quality Assessment Via Sparse Representation
    LiuYin ·Xi'an Optics and Fine Mechanics ·2013 ·Master's thesis