Skip to content

minor error in chapter15 #5

@liz-shaw

Description

@liz-shaw

The Issue: In Listing 15.13, the code uses range(2, 10). Because Python's range(start, stop) function is exclusive of the stop value, this code only generates results from K=2 to K=9.
The Mismatch: However, Figure 15.5 displays 9 subplots, including one explicitly labeled "10 clusters".
The Fix: To make the code's output perfectly match the figure provided in the book, the range should be updated to range(2, 11).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions