← All books

Book cover of MACHINE LEARNING NOTES by Faramarz Kowsari

Illustrated machine learning study companion

MACHINE LEARNING NOTES

From Classical ML to Responsible AI

The complete two-volume collection · English · 128 illustrated study pages

Classical MLDeep LearningGenerative AIMLOpsResponsible AI

Available through Google Play Books. Preview availability and purchase options are determined by Google Books for your region.

Free Google Books Preview

Read a free sample of this book on Google Books before you buy.

The idea behind this book

Learn to see how machine learning works

A machine learning model can produce an impressive score while answering the wrong question. A neural network can fit its training data and still fail on the next dataset. A sophisticated architecture can hide a remarkably simple mistake: information from the future leaked into the training set, an unsuitable metric, or a decision threshold chosen after looking at the test results. The most useful machine learning education teaches you to recognize these problems, not just memorize algorithm names.

MACHINE LEARNING NOTES: From Classical ML to Responsible AI turns that learning journey into a visual, connected reference. Across two complementary volumes, 128 illustrated study pages move from the basic question of what a model learns to the deeper questions of how it generalizes, how it should be evaluated, how modern deep-learning systems are built, and how their behavior can be monitored and audited. Instead of long walls of prose, the material uses handwritten-style explanations, clearly labeled diagrams, color-coded mathematical ideas, small worked examples, and compact warnings about where intuition can mislead.

This is a book to study with a pencil nearby. Read a note, trace the arrows, check the equation, test the example in your own code, and return to the page whenever a concept becomes fuzzy.

One learning journey, two connected volumes. The first develops the conceptual and mathematical foundations of classical machine learning and honest model selection. The second extends that discipline to learning theory, neural networks, transformers, generative systems, reinforcement learning, production pipelines, and responsible AI. The bridge between them is deliberate: advanced models still need defensible data, evaluation, and judgment.

Inside the complete two-volume collection

Volume One · Classical Machine Learning

From the first dataset to a defensible model

Start with the language of learning and finish with a reproducible evaluation workflow. The emphasis is on the reasoning that makes a model trustworthy enough to compare.

  • Learning tasks and foundations: supervised, unsupervised and reinforcement learning; features, targets, baselines, vectors, matrices, gradients, probability and Bayes' theorem.
  • Real data workflows: NumPy and pandas concepts, data quality, missing values, scaling, encoding, feature construction, train/validation/test splits and leakage-resistant pipelines.
  • Regression: least squares, nonlinear fits, overfitting, ridge, lasso and elastic net regularization.
  • Classification: logistic regression, class probabilities, decision boundaries, Naive Bayes, Gaussian discriminant models, nearest neighbors, support vector machines and kernels.
  • Trees and ensembles: decision trees, bagging, random forests, boosting and disciplined model combinations.
  • Evaluation and reproducibility: confusion matrices, precision and recall, class imbalance, thresholds, cross-validation, regression errors, tuning, calibration and transparent reporting.

The lasting lesson: fitting a model is only part of learning; proving what its score means is the harder part.

Volume Two · Advanced & Responsible ML

From generalization to real-world AI systems

Move into advanced methods without losing sight of their assumptions, limitations and operational consequences.

  • Learning theory: empirical versus population risk, generalization gaps, bias–variance, model capacity, optimization, momentum, Adam and predictive uncertainty.
  • Unsupervised learning: k-means, hierarchical clustering, DBSCAN, Gaussian mixtures, expectation-maximization, anomaly detection, PCA, SVD and visualization cautions.
  • Deep learning: perceptrons, nonlinear activations, neural losses, computation graphs, backpropagation, automatic differentiation, training stability and regularization.
  • Images and sequences: convolutional networks, transfer learning, sequence models, gated recurrence, temporal evaluation, attention and transformers.
  • Modern AI: embeddings, foundation-model adaptation, self-supervised learning, latent-variable and adversarial models, diffusion, reinforcement-learning values and policies.
  • Deployment and responsibility: experiment tracking, model serving, monitoring, explainability, fairness, privacy, security, independent auditing and system limitations.

The lasting lesson: model quality is a continuing responsibility, from the training objective to the decisions made after deployment.

Five concrete ways the notes make difficult ideas clearer

1. Understand a learning task before choosing an algorithm

The opening visual lessons contrast handwritten rules with patterns learned from labeled examples. A simple fruit-classification illustration becomes a vehicle for explaining what the inputs are, what labels mean, and why testing on unseen observations matters. That leads naturally to baselines, appropriate targets, and the distinction between prediction and causal explanation.

2. See the mathematics rather than reciting it

Regression lines, sigmoid curves, feature vectors, gradient arrows, loss functions and probability relationships are annotated in context. The purpose is to connect an equation to the object it describes: a boundary, a probability, an optimization step, or a source of error. This is particularly helpful when moving from familiar plots to matrix-based notation and neural-network computation graphs.

3. Learn why evaluation can be misleading

Model performance is more than accuracy. The collection treats class imbalance, confusion matrices, error costs, precision and recall, cross-validation, leakage, tuning bias and probability calibration as choices with consequences. In the advanced volume, diagrams distinguish empirical training risk from the population risk we actually care about. A small validation sample can fluctuate; searching many settings on one validation set can make an estimate look better than it is.

One of the book's recurring questions: Did the model learn a useful pattern, or did the experimental setup make it appear more reliable than it really is?

4. Connect classical intuition with deep learning

The second volume introduces neurons and nonlinear activations before backpropagation, automatic differentiation and optimization. It then links spatial filters to convolutional networks, time-ordered data to sequence models, and query–key–value attention to transformer architectures. These topics are presented as extensions of earlier ideas about representation, loss and generalization, so the technical vocabulary accumulates with a purpose.

5. Follow a model beyond its training notebook

The final stretch asks what changes when a model becomes a system: data and model versions, serving, monitoring, changing distributions, fairness assessments, privacy and security trade-offs, and the need to document known limits. Responsible AI is integrated into the engineering story, not treated as a decorative final slogan.

Designed for active visual study

The notes use a handwritten-student-notebook aesthetic, but the visual devices have instructional jobs. Colored annotations separate definitions from exceptions. Diagrams reveal dependencies. Worked examples slow down a calculation just enough to show where each term comes from. Caution labels point out common conceptual traps before they become habits.

Concept maps

Locate an idea within the larger learning workflow: data, model, objective, prediction, evaluation and decision.

Equation anatomy

Read symbols alongside the plots and small numerical cases that give them meaning.

Visual comparisons

Contrast methods such as underfitting versus overfitting, classification versus regression, and different clustering behaviors.

Worked micro-examples

Trace a small calculation or update step before attempting a larger implementation.

Failure warnings

Notice data leakage, unsuitable metrics, optimistic validation and other errors that polished demos often conceal.

Quick revision pages

Return to compact explanations when preparing for class, interviews or a new engineering task.

Keep the full visual learning map at hand

The collection is built to be revisited: when a formula stops making sense, when you need to choose an evaluation metric, or when a modern AI concept needs to be traced back to its foundations.

Who will benefit most?

The book moves from accessible foundations to mathematically and technically demanding material. Beginners can follow the first volume progressively; readers with prior experience can use both volumes as a structured review. It is a visual study companion, not a substitute for implementing models, reading primary research, or running rigorous experiments of your own.

A practical way to use the book

  1. Begin with the question. Before reading a note, say what problem the method or metric is meant to solve.
  2. Trace the visual explanation. Follow each arrow, label and mathematical relationship rather than memorizing the final diagram.
  3. Recreate one small example. Calculate by hand or implement a tiny test in Python to see whether your intuition matches the result.
  4. Ask what could fail. Identify a broken assumption, a leakage path, a poor metric or an out-of-distribution case.
  5. Review across volumes. Connect advanced topics back to the fundamentals of data, loss, optimization and validation.

That habit turns the notes into a durable reference: useful before an exam, during a project, and after an apparently successful model gives a surprising answer.

Questions readers often ask

Is this one book or two?

This edition is the complete two-volume collection in one reading journey: classical machine learning in the first part and advanced, deep-learning and responsible-AI material in the second. Together the volumes comprise 128 illustrated study pages.

Does it start from the beginning?

Yes. The first volume introduces the learning problem, features, labels, baselines and mathematical essentials before regression, classification and model evaluation. The second volume assumes that foundation and moves into more advanced ideas.

Is it focused on code or on understanding?

Its distinctive format is visual lecture notes: annotated diagrams, explanations, formulas, comparisons and small examples. It complements hands-on coding rather than pretending that reading notes alone replaces practical experience.

Does the book include modern AI topics?

Yes. The advanced volume covers neural networks, convolutional and sequence models, attention and transformers, foundation-model ideas, generative models, reinforcement learning, MLOps and responsible AI.

Can I preview it before buying?

Use the Google Books links on this page to check the reading sample and purchasing options available for your account and region.

About the author

Faramarz Kowsari is an Istanbul-based author and researcher working at the intersection of technology, education and personal growth. He has published over 160 digital titles on international platforms. His areas of interest include artificial intelligence, prompt engineering, modern trading strategies, classical literature and mindfulness. In addition to writing, he develops web-based educational tools and creates specialized instructional video content.

Official profiles: Official Website · Published Books · Author Profile · GitHub · ORCID.

Ready to make the ideas connect?

MACHINE LEARNING NOTES: From Classical ML to Responsible AI brings the foundations, modern methods and responsible use of ML into one illustrated study collection.

Book title: MACHINE LEARNING NOTES · Subtitle: From Classical ML to Responsible AI · Author: Faramarz Kowsari · Language: English · Google Books ID: hn8mEgAAQBAJ

Browse Books by Topic

Explore the library by subject and find related books faster.