Skip to Main Content
Hands-On Deep Learning with Apache Spark
book

Hands-On Deep Learning with Apache Spark

by Guglielmo Iozzia
January 2019
Intermediate to advanced content levelIntermediate to advanced
322 pages
7h 29m
English
Packt Publishing
Content preview from Hands-On Deep Learning with Apache Spark

Data ingestion from a relational database

Suppose the data is stored in a table called sparkexample in a MySQL (https://dev.mysql.com/) schema with the name sparkdb. This is the structure of that table:

mysql> DESCRIBE sparkexample;+-----------------------+-------------+------+-----+---------+-------+| Field                 | Type        | Null | Key | Default | Extra |+-----------------------+-------------+------+-----+---------+-------+| DateTimeString        | varchar(23) | YES  |     | NULL    |       || CustomerID            | varchar(10) | YES  |     | NULL    |       || MerchantID            | varchar(10) | YES  |     | NULL    |       || NumItemsInTransaction | int(11)     | YES  |     | NULL    |       || MerchantCountryCode   | varchar(3)  | YES  |     | NULL    |       || TransactionAmountUSD  | float       | YES  |     | NULL    |       || FraudLabel | varchar(5) | YES | | ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Next-Generation Machine Learning with Spark: Covers XGBoost, LightGBM, Spark NLP, Distributed Deep Learning with Keras, and More

Next-Generation Machine Learning with Spark: Covers XGBoost, LightGBM, Spark NLP, Distributed Deep Learning with Keras, and More

Butch Quinto
Apache Spark Deep Learning Cookbook

Apache Spark Deep Learning Cookbook

Ahmed Sherif, Amrith Ravindra, Michal Malohlava, Adnan Masood

Publisher Resources

ISBN: 9781788994613Supplemental Content