Skip to content

[FAQ Bot] UPDATE: np.linalg.inv(XTX) throws LinAlgError: Singular matrix — what does this - #431

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
faq-bot/issue-430
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
faq-bot/issue-430

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

📝 FAQ UPDATE

Course: machine-learning-zoomcamp
Section: module-1 (This belongs to linear algebra basics in Module 1, where np.linalg.inv, singular matrices, and related fixes are discussed.)
Related Issue: #430

Question

np.linalg.inv(XTX) throws LinAlgError: Singular matrix — what does this mean?

Decision Rationale

The error is about linear algebra/NumPy used in Module 1. Existing FAQs cover the meaning in general terms, but this proposal adds practical troubleshooting (check rank and use the pseudo-inverse) that is not fully captured.

Placement Details

  • Section ID: module-1
  • Sort Order: End of section
  • Document ID: 0a7e9c723a

⚠️ Warnings

  • An existing Module 1 answer also mentions multiplication order; this update adds rank/pseudo-inverse guidance rather than replacing that content.

🤖 Generated by FAQ Bot

Closes #430

@github-actions github-actions Bot mentioned this pull request Oct 5, 2026
3 tasks done

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FAQ]

0 participants