Build, test, and break AI algorithms in Python!

AI Algorithms with Python Classic Algorithms from K-Nearest Neighbors to Reinforcement Learning

written by
approx. $54.99

Pre-order now

approx. $59.95

Pre-order now

approx. $69.99

Pre-order now

Print edition E-book Bundle
500 pages, , Print edition paperback
ISBN 978-1-4932-2916-1
500 pages,
E-book formats: EPUB, PDF, online
ISBN 978-1-4932-2917-8
500 pages, , Print edition paperback
E-book formats: EPUB, PDF, online
ISBN 978-1-4932-2918-5
What really happens when you call model.fit()? Open the black box of machine learning and find out for yourself by building classic AI algorithms using this practical guide! You’ll implement k-nearest neighbors, Naïve Bayes, linear and logistic regression, decision trees, k-means clustering, support vector machines, neural networks, and reinforcement learning—all from scratch in Python. Apply each method to real data, measure its performance, and then deliberately break it to discover its limits!
  • Implement classic machine learning and AI algorithms with Python from scratch
  • Work with k-nearest neighbors, Naïve Bayes classifiers, linear regression, decision trees, and more
  • Test the limits of each algorithm with hands-on exercises
About the E-book About the Book E-book in full color. PDF (16 MB) and EPUB (5 MB) files for download, DRM-free with personalized digital watermark. Copy and paste, bookmarks, and print-out permitted. Table of contents, in-text references, and index fully linked. Including online book edition in dedicated reader application. 500 pp., paperback. Reference book format 7 x 10 in. Printed black and white on 60# offset paper from sustainable sources. Reader-friendly serif font (TheAntiquaB 9.5 Pt.). One-column layout.

In this book, you'll learn about:

  1. Math and Data Science Foundations

    Get an intro to the math you need—linear algebra, statistics, probability, and gradient descent—explained with code instead of proofs. Then learn the data science workflow: clean and explore data with pandas, engineer features, and evaluate models with metrics such as accuracy, precision, recall, and RMSE.

  2. Algorithms from Scratch

    Work through one algorithm at a time, from k-nearest neighbors and Naïve Bayes to support vector machines, neural networks, and Q-learning. Build each one in simple Python, apply it to real data in Jupyter Notebook, and then implement it professionally with scikit-learn.

  3. Limitations and AI Ethics

    Push each algorithm into situations it can’t handle—outliers, poor scaling, imbalanced classes, overfitting—to find out exactly why it fails. Understand the responsibility that comes with building AI models, and learn about bias, transparency, and the importance of keeping a human in the loop.

Highlights include

  • Mathematics for machine learning
  • Data science and evaluation metrics
  • k-nearest neighbors (kNN)
  • Naïve Bayes
  • Linear and logistic regression
  • Decision trees
  • k-means clustering
  • Support vector machines (SVMs)
  • Neural networks
  • Reinforcement learning
  • Pygame simulations
  • AI and ethics

Jens Gaulke is a computer scientist who has worked in information security at Arvato Systems for more than a decade, focusing on information security management, business continuity management, ISO standards, cloud computing, and AI.

more >