Scaling Machine Learning with Spark by Adi Polak
Author:Adi Polak [Adi Polak]
Language: eng
Format: epub
Publisher: O'Reilly Media, Inc.
Published: 2023-02-25T00:00:00+00:00
There are many other filter features Pillow provides us with out-of-the-box such as BLUR, SMOOTH, EDGE_ENHANCE, and others. all of which are based on adding a filter to the image based on pixel gradient manipulation. Figure 3-7 captures how grey-scale and edge-filter features are rendered.
Extracting Features Leveraging Spark APIs
Letâs examine multiple techniques using the Caltech256 dataset. In the preprocessing chapter, we started touching a bit on Python UDFs and how to use them for extracting image size. Letâs dive deeper into this topic as it is our main tool for feature extraction over images.
Until 2017, PySpark supported Python UDFs that operated on one-row-at-at-a-time, those functions missed on Spark Query Engine optimization capabilities and since, behind the scenes, PySpark is being translated into Scala code, many UDFs written in PySpark had high serialization and invocation overhead. As a result, data engineers and data scientists worked together to define UDFs in Java and Scala where data scientists invoke them from Python. This made the code messy, hard to navigate and maintain. Fortunately, Spark 3.0 introduced Pandas UDFs together with Python Type Hints that allow us to run on groups of rows at a time, leverage Apache Arrow optimization for reducing deserialization operations, and use Pandas API from within the function.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Access | Data Mining |
Data Modeling & Design | Data Processing |
Data Warehousing | MySQL |
Oracle | Other Databases |
Relational Databases | SQL |
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8295)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6708)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6685)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6559)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6343)
Driving Data Quality with Data Contracts by Andrew Jones(6293)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6059)
Learning SQL by Alan Beaulieu(5994)
Weapons of Math Destruction by Cathy O'Neil(5778)
Big Data Analysis with Python by Ivan Marin(5349)
Data Engineering with dbt by Roberto Zagni(4348)
Solidity Programming Essentials by Ritesh Modi(3994)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3851)
Pandas Cookbook by Theodore Petrou(3563)
Blockchain Basics by Daniel Drescher(3292)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2905)
Feature Store for Machine Learning by Jayanth Kumar M J(2811)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2794)
Mastering Python for Finance by Unknown(2743)
