- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 188字
- 2021-07-09 21:07:55
Data Pipeline in Apache Spark
As we have seen the movie lens use case, it is quite common to run a sequence of machine learning algorithms to process and learn from data. Another example is a simple text document processing workflow, which can include several stages:
- Split the document's text into words
- Convert the document's words into a numerical feature vector
- Learn a prediction model from feature vectors and labels
Spark MLlib represents such a workflow as a Pipeline; it consists of Pipeline Stages in sequence (Transformers and Estimators), which are run in a specific order.
A Pipeline is specified as a sequence of stages. Each stage is a Transformer or an Estimator. Transform converts one data frame into another. Estimator, on the other hand, is a learning algorithm. Pipeline stages are run in order, and the input DataFrame is transformed as it passes through each stage.
In Transformer stages, the transform() method is called on the DataFrame. For Estimator stages, the fit() method is called to produce a Transformer (which becomes part of the PipelineModel or fitted Pipeline). The transformer's transform() method is executed on the DataFrame.
- R Data Mining
- JMAG電機電磁仿真分析與實例解析
- 自主研拋機器人技術
- 21天學通Visual C++
- 水晶石精粹:3ds max & ZBrush三維數字靜幀藝術
- Lightning Fast Animation in Element 3D
- WOW!Photoshop CS6完全自學寶典
- Natural Language Processing and Computational Linguistics
- Unreal Development Kit Game Design Cookbook
- Practical AWS Networking
- Serverless Design Patterns and Best Practices
- 伺服與運動控制系統設計
- Access 2007數據庫入門與實例應用金典
- FreeCAD [How-to]
- 輸送技術、設備與工業應用