Skip to content

mglearn.plots.plot_pca_faces(X_train, X_test, image_shape) #182

Open
@JorgeFBock

Description

@JorgeFBock

I just get 5x3 very black images with nothing but black. All codes prior to this line run smoothly and no problem
Is there any hint as to why and how to fix it? I m using "noteable". Python 3.9.

The next lines, run perfectly and the graph is as in the book:
mglearn.discrete_scatter(X_train_pca[:, 0], X_train_pca[:, 1], y_train)
plt.xlabel("First principal component")
plt.ylabel("Second principal component")

BR

Screenshot 2023-09-27 104601

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