mml-book / mml-book.github.io

Companion webpage to the book "Mathematics For Machine Learning"
13.11k stars 2.42k forks source link

Python-esque array slice notation unexplained #750

Closed divilian closed 9 months ago

divilian commented 1 year ago

Describe the mistake In Example 5.15 (p.167f) the derivation drops into a Python-esque array slice notation ("f[:,:,1]"). As far as I can see, this is not explained anywhere in the text nor on the notation pages in the Forward (pp.6-7).

Location

  1. Version 2023-02-15
  2. Chapter 5
  3. Section 5.8
  4. (5.175), etc.

Proposed solution Explain this notation. (And while you're at it, axe the green Python text in the p.167 sidebar, unless you do intend to explain what this code means to a very-possibly-Python-illiterate reader. #748)

mpd37 commented 9 months ago

We can't introduce programming in the book. We believe it's probably OK for most readers and having it there should be beneficial to not having it there.