collections

Working with lists, maps, and sets in Groovy.

PyTorch Dataset and DataLoader: The Real Training Loop

You trained your first network on a toy set that fit in one tensor, and it felt easy. Then real data arrives, a CSV with thousands of rows or an image folder too big for memory, and the PyTorch DataLoader is the tool built for exactly that. Here you pair it with a custom Dataset, feed a network from a CSV and an image folder, run the five-step loop from memory, validate honestly, and save a checkpoint you can resume ... Read More

AI Training Data: Where Datasets Come From and Why They Matter

AI training data is the single biggest reason a model works or quietly falls apart, and this tutorial explains where datasets come from, what a label really is, how bias sneaks in, and why the train/validation/test split is the habit that keeps you honest. If you remember one thing from the whole AI Foundations chapter, make it this: the data you feed a model matters more than the model itself. “Real stupidity beats artificial intelligence every time.” Terry Pratchett, Hogfather ... Read More

Pandas Project: Clean a Messy Real-World Dataset

This pandas project takes a genuinely messy dataset and turns it into numbers you can trust. You will audit the mess first, fix it in clear stages (types, dates, duplicates, categories, outliers), validate the result, then answer three real business questions with groupby and merge. By the end you have a notebook you can put on GitHub and point a hiring manager at. “Most of data science is janitor work. The model is the easy part, the cleaning is the ... Read More