About this episode
Jun 2018
MLA 005 Shapes and Sizes: Tensors and NDArrays
<div> <p>Explains the fundamental differences between tensor dimensions, size, and shape, clarifying frequent misconceptions—such as the distinction between the number of features ("columns") and true data dimensions—while also demystifying reshaping operations like expand_dims, ... Show More
27m 18s
Jul 2018
MLA 006 Salaries for Data Science & Machine Learning
<div> <p>O'Reilly's 2017 Data Science Salary Survey finds that location is the most significant salary determinant for data professionals, with median salaries ranging from $134,000 in California to under $30,000 in Eastern Europe, and highlights that negotiation skills can lead ... Show More
19m 35s
Oct 2018
MLA 007 Jupyter Notebooks
<div> <p>Jupyter Notebooks, originally conceived as IPython Notebooks, enable data scientists to combine code, documentation, and visual outputs in an interactive, browser-based environment supporting multiple languages like Python, Julia, and R. This episode details how Jupyter ... Show More
16m 52s
Jun 2021
Accelerating ML Training And Delivery With In-Database Machine Learning
<div class="wp-block-jetpack-markdown"><h2>Summary</h2>
<p>When you build a machine learning model, the first step is always to load your data. Typically this means downloading files from object storage, or querying a database. To speed up the process, why not build the model in ... Show More
1h 5m
Sep 2019
Open Source Object Storage For All Of Your Data
<div class="wp-block-jetpack-markdown"><h2>Summary</h2>
<p>Object storage is quickly becoming the unifying layer for data intensive applications and analytics. Modern, cloud oriented data warehouses and data lakes both rely on the durability and ease of use that it provides. S3 ... Show More
1h 8m
Nov 2022
Analyze Massive Data At Interactive Speeds With The Power Of Bitmaps Using FeatureBase
<div class="wp-block-jetpack-markdown"><h2>Summary</h2>
<p>The most expensive part of working with massive data sets is the work of retrieving and processing the files that contain the raw information. FeatureBase (formerly Pilosa) avoids that overhead by converting the data int ... Show More
59m 25s
Apr 2021
Moving Machine Learning Into The Data Pipeline at Cherre
<div class="wp-block-jetpack-markdown"><h2>Summary</h2>
<p>Most of the time when you think about a data pipeline or ETL job what comes to mind is a purely mechanistic progression of functions that move data from point A to point B. Sometimes, however, one of those transformation ... Show More
48m 5s
Jul 2020
What data transformation library should I use? Pandas vs Dask vs Ray vs Modin vs Rapids (Ep. 112)
<p>In this episode I speak about data transformation frameworks available for the data scientist who writes Python code.
The usual suspect is clearly Pandas, as the most widely used library and de-facto standard. However when data volumes increase and distributed algorithms are ... Show More
21m 10s
May 2023
675: Pandas for Data Analysis and Visualization
Wrangling data in Pandas, when to use Pandas, Matplotlib or Seaborn, and why you should learn to create Python packages: Jon Krohn speaks with guest Stefanie Molin, author of Hands-On Data Analysis with Pandas.
This episode is brought to you by Posit, the open-source data science ... Show More
1h 8m
Dec 2012
Hadoop
This show covers Hadoop, a set of several languages and libraries for working with big data. Tools of the show: Emacs and Chrome Browser Sync. Books of the show: Hadoop: The Definitive Guide http://tinyurl.com/cp3mw32 and Anathem http://tinyurl.com/cas8bux.
1h 7m
May 2023
Creating instruction tuned models (Practical AI #223)
At the recent ODSC East conference, Daniel got a chance to sit down with Erin Mikail Staples to discuss the process of gathering human feedback and creating an instruction tuned Large Language Models (LLM). They also chatted about the importance of open data and practical tooling ... Show More
26m 33s
Practical workflow of loading, cleaning, and storing large datasets for machine learning, moving from ingesting raw CSVs or JSON files with pandas to saving processed datasets and neural network weights using HDF5 for efficient numerical storage. It clearly distinguishes among storage options—explaining when to use HDF5, pickle files, or SQL databases—while highlighting how libraries like pandas, TensorFlow, and Keras interact with these formats and why these choices matter for production pipelines.
Links
Data Ingestion and Preprocessing
-
Data Sources and Formats:
- Datasets commonly originate as CSV (comma-separated values), TSV (tab-separated values), fixed-width files (FWF), JSON from APIs, or directly from databases.
- Typical applications include structured data (e.g., real estate features) or unstructured data (e.g., natural language corpora for sentiment analysis).
-
Pandas as the Core Ingestion Tool:
- Pandas provides versatile functions such as
read_csv, read_json, and others to load various file formats with robust options for handling edge cases (e.g., file encodings, missing values). - After loading, data cleaning is performed using pandas: dropping or imputing missing values, converting booleans and categorical columns to numeric form.
-
Data Encoding for Machine Learning:
- All features must be numerical before being supplied to machine learning models like TensorFlow or Keras.
- Categorical data is one-hot encoded using
pandas.get_dummies, converting strings to binary indicator columns. - The underlying NumPy array of a DataFrame is accessed via
df.values for direct integration with modeling libraries.
Numerical Data Storage Options
-
HDF5 for Storing Processed Arrays:
- HDF5 (Hierarchical Data Format version 5) enables efficient storage of large multidimensional NumPy arrays.
- Libraries like h5py and built-in pandas functions (
to_hdf) allow seamless saving and retrieval of arrays or DataFrames. - TensorFlow and Keras use HDF5 by default to store neural network weights as multi-dimensional arrays for model checkpointing and early stopping, accommodating robust recovery and rollback.
-
Pickle for Python Objects:
- Python's pickle protocol serializes arbitrary objects, including machine learning models and arrays, into files for later retrieval.
- While convenient for quick iterations or heterogeneous data, pickle is less efficient with NDarrays compared to HDF5, lacks significant compression, and poses security risks if not properly safeguarded.
-
SQL Databases and Spreadsheets:
- For mixed or heterogeneous data, or when producing results for sharing and collaboration, relational databases like PostgreSQL or spreadsheets such as CSVs are used.
- Databases serve as the endpoint for production systems, where model outputs—such as generated recommendations or reports—are published for downstream use.
Storage Workflow in Machine Learning Pipelines
Summary
- HDF5 is optimal for numerical array storage due to its efficiency, built-in compression, and integration with major machine learning frameworks.
- Pickle accommodates arbitrary Python objects but is suboptimal for numerical data persistence or security.
- SQL databases and spreadsheets are used for disseminating results, especially when human consumption or application integration is required.
- The selection of a storage format is determined by data type, pipeline stage, and end-use requirements within machine learning workflows.