{"product_id":"50-ml-projects-to-understand-mike-x-cohen-9781808082559","title":"50 ML Projects To Understand LLMs: Investigate transformer mechanisms through data analysis, visualization, and experimentation","description":"\u003cp\u003e\u003cstrong\u003eMost books teach you how to build LLMs from scratch or deploy them via APIs. This book does uses guided machine learning projects to teach you how to understand, visualize, and investigate LLMs including GPT and BERT.\u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eKey Features: \u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003e- Each project is built around three learning goals: machine learning techniques, LLM mechanisms, and Python coding with data visualization.\u003c\/p\u003e\u003cp\u003e- This is not a dense theoretical textbook; it's hands-on, practical, and project-oriented.\u003c\/p\u003e\u003cp\u003e- You will learn how to measure, visualize, and manipulate the internal components of LLMs directly. \u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eBook Description: \u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003eThrough 50 hands-on, guided projects solved in Python, you will investigate the internal mechanisms of large language models by treating their hidden states, attention patterns, and embeddings as data to analyze. Rather than accepting LLMs as black boxes, you will open them up, examine what's inside, and run experiments to understand why they behave the way they do. All projects are based on Python (using libraries such as NumPy, PyTorch, statsmodels, scikit-learn, Matplotlib, Pandas, and Seaborn) and come with full solutions and partial solution notebook files, so you can practice and improve your skills in data science, deep learning, data visualization, and scientific and statistical coding.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eWhat You Will Learn: \u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003e- Tokenization schemes and their statistical properties\u003c\/p\u003e\u003cp\u003e- Embedding spaces: cosine similarity, semantic axes, and analogy vectors\u003c\/p\u003e\u003cp\u003e- Output logits, softmax distributions, perplexity, and language biases\u003c\/p\u003e\u003cp\u003e- Layer-by-layer transformer dynamics and dimensionality\u003c\/p\u003e\u003cp\u003e- Attention mechanisms: QKV weights, attention scores, head ablation, and activation patching\u003c\/p\u003e\u003cp\u003e- MLP subblocks: neuron tuning, mutual information, subspace analysis, and statistics-based causal manipulations\u003c\/p\u003e\u003cp\u003e- Logit lens, indirect object identification, and causal tracing\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eWho this book is for: \u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003eThis book is for data scientists, ML engineers, and researchers who want to go beyond surface-level understanding of LLMs. Prior Python experience is required. Familiarity with machine learning or deep learning is helpful but not required - techniques are introduced as they arise throughout the projects.\u003c\/p\u003e\u003cp\u003e\u003cstrong\u003eTable of Contents\u003c\/strong\u003e\u003c\/p\u003e\u003cp\u003e- Introductions\u003c\/p\u003e\u003cp\u003e- Tokenization\u003c\/p\u003e\u003cp\u003e- Embeddings\u003c\/p\u003e\u003cp\u003e- Output logits\u003c\/p\u003e\u003cp\u003e- Transformer outputs\u003c\/p\u003e\u003cp\u003e- Attention\u003c\/p\u003e\u003cp\u003e- MLP\u003c\/p\u003e\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAuthor:\u003c\/b\u003e Mike X. Cohen\u003cbr\u003e\u003cb\u003eISBN-10:\u003c\/b\u003e 1808082559\u003cbr\u003e\u003cb\u003eISBN-13:\u003c\/b\u003e 9781808082559\u003cbr\u003e\u003cb\u003ePublisher:\u003c\/b\u003e Packt Publishing\u003cbr\u003e\u003cb\u003eLanguage:\u003c\/b\u003e English\u003cbr\u003e\u003cb\u003ePublished:\u003c\/b\u003e 05\/29\/2026\u003cbr\u003e\u003cb\u003ePages:\u003c\/b\u003e 520\u003cbr\u003e\u003cb\u003eFormat:\u003c\/b\u003e Paperback\u003cbr\u003e\u003cb\u003eWeight:\u003c\/b\u003e 1.95lbs\u003cbr\u003e\u003cb\u003eSize:\u003c\/b\u003e 9.25h x 7.50w x 1.05d","brand":"Mike X. Cohen","offers":[{"title":"Paperback","offer_id":48659880476927,"sku":"9781808082559","price":49.99,"currency_code":"USD","in_stock":true}],"url":"https:\/\/www.whiterainbookhouse.com\/products\/50-ml-projects-to-understand-mike-x-cohen-9781808082559","provider":"WR Book House","version":"1.0","type":"link"}