ML Map Reduce (Lecture 11) (Máy học với MapReduce)
正在生成预览...
Slide bài giảng về Machine Learning với MapReduce, bao gồm các phần về K-Means Clustering và EM-Algorithm.
描述
Machine Learning with MapReduce K-Means Clustering 3 How to MapReduce K-Means? Given K, assign the first K random points to be the initial cluster centers Assign subsequent points to the closest cluster using the supplied distance measure Compute the centroid of each cluster and iterate the previous step until the cluster centers converge within delta Run a final pass over the points to cluster them for output K-Means Map/Reduce Design Driver Runs multiple iteration jobs using mapper+combiner+reducer Runs final clustering job using only mapper Mapper Configure: Single file containing encoded Clusters Input: File split containing encoded Vectors Output: Vectors keyed by nearest cluster Combiner Input: Vectors keyed by nearest cluster Output: Cluster centroid vectors keyed by “cluster” Reducer (singleton) Input: Cluster centroid vectors Output: Single file containing Vectors keyed by cluster Mapper - mapper has k centers in memory. Input Key-value pair (each input data point x). Find the index of the closest of the k centers (call it iClosest). Emit: (key,value) = (iClosest, x) Reducer(s) – Input (key,value) Key = index of center Value = iterator over input data points closest to ith center At each key value, run through the iterator and average all the Corresponding input data points. Emit: (index of center, new center) Improved Version: Calculate partial sums in mappers Mapper - mapper has k centers in memory. Running through one input data point at a time (call it x). Find the index of the closest of the k centers (call it iClosest). Accumulate sum of inputs segregated into K groups depending on which center is closest. Emit: ( , partial sum) Or Emit(index, partial sum) Reducer – accumulate partial sums and Emit with index or without EM-Algorithm What is MLE? Given A sample X={X1, …, Xn} A vector of parameters θ We define Likelihood of the data: P(X | θ) Log-likelihood of the data: L(θ)=log P(X|θ)
AI 摘要
- 文档名称
- ML Map Reduce (Lecture 11) (Máy học với MapReduce)
- 学校 / 课程
- University of Hamburg · Big Data
- 内容
- Tài liệu giới thiệu cách triển khai thuật toán K-Means Clustering và EM-Algorithm bằng MapReduce. Nó giải thích các bước thiết kế Map, Combiner, Reducer cho K-Means và trình bày nền tảng lý thuyết của EM-Algorithm, bao gồm MLE và cách xử lý dữ liệu ẩn.
- 目录
- K-Means Clustering
- How to MapReduce K-Means?
- K-Means Map/Reduce Design
- Mapper - mapper has k centers in memory.
- Improved Version: Calculate partial sums in mappers
- EM-Algorithm
- What is MLE?
- MLE (cont)
- An easy case
- An easy case (cont)
- Basic setting in EM
- The basic EM strategy
- The log-likelihood function
- The iterative approach for MLE
- 页数
- 51 页
- 上传者
- Uni24h
常见问题
此文档免费吗?
是的。“ML Map Reduce (Lecture 11) (Máy học với MapReduce)”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 51 页,适用于课程 Big Data。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
ML Map Reduce (Lecture 11) (Máy học với MapReduce)
正在生成预览...
Machine Learning with MapReduce K-Means Clustering 3 How to MapReduce K-Means? Given K, assign the first K random points to be the initial cluster centers Assign subsequent points to the closest cluster using the supplied distance measure Compute the centroid of each cluster and iterate the previous step until the cluster centers converge within delta Run a final pass over the points to cluster them for output K-Means Map/Reduce Design Driver Runs multiple iteration jobs using mapper+combiner+reducer Runs final clustering job using only mapper Mapper Configure: Single file containing encoded Clusters Input: File split containing encoded Vectors Output: Vectors keyed by nearest cluster Combiner Input: Vectors keyed by nearest cluster Output: Cluster centroid vectors keyed by “cluster” Reducer (singleton) Input: Cluster centroid vectors Output: Single file containing Vectors keyed by cluster Mapper - mapper has k centers in memory. Input Key-value pair (each input data point x). Find the index of the closest of the k centers (call it iClosest). Emit: (key,value) = (iClosest, x) Reducer(s) – Input (key,value) Key = index of center Value = iterator over input data points closest to ith center At each key value, run through the iterator and average all the Corresponding input data points. Emit: (index of center, new center) Improved Version: Calculate partial sums in mappers Mapper - mapper has k centers in memory. Running through one input data point at a time (call it x). Find the index of the closest of the k centers (call it iClosest). Accumulate sum of inputs segregated into K groups depending on which center is closest. Emit: ( , partial sum) Or Emit(index, partial sum) Reducer – accumulate partial sums and Emit with index or without EM-Algorithm What is MLE? Given A sample X={X1, …, Xn} A vector of parameters θ We define Likelihood of the data: P(X | θ) Log-likelihood of the data: L(θ)=log P(X|θ)
阅读全文
- 文档名称
- ML Map Reduce (Lecture 11) (Máy học với MapReduce)
- 学校 / 课程
- University of Hamburg · Big Data
- 内容
- Tài liệu giới thiệu cách triển khai thuật toán K-Means Clustering và EM-Algorithm bằng MapReduce. Nó giải thích các bước thiết kế Map, Combiner, Reducer cho K-Means và trình bày nền tảng lý thuyết của EM-Algorithm, bao gồm MLE và cách xử lý dữ liệu ẩn.
- 目录
- K-Means Clustering
- How to MapReduce K-Means?
- K-Means Map/Reduce Design
- Mapper - mapper has k centers in memory.
- Improved Version: Calculate partial sums in mappers
- EM-Algorithm
- What is MLE?
- MLE (cont)
- An easy case
- An easy case (cont)
- Basic setting in EM
- The basic EM strategy
- The log-likelihood function
- The iterative approach for MLE
- 页数
- 51 页
- 上传者
- Uni24h
评论 (0)
暂无评论。快来抢沙发吧!
Neumann (mối quan hệ giữa Exascale Computing và Big Data) - Philipp Neumann
Tính toán trong bộ nhớ với Spark - Julian M. Kunkel
Intro to Mapreduce (02) (Giới thiệu về MapReduce và Hadoop) (Tiếng Anh)
GPUs (04) (Xử lý song song và bộ xử lý đồ họa)
Neo4j (08) (Xử lý đồ thị với Neo4j) - BigData Analytics - Julian M. Kunkel
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
评论 (0)
暂无评论。快来抢沙发吧!