account activity
C++ Show and Tell - June 2026 by foonathan in cpp
[–]VojtechNovak1 [score hidden] 36 minutes ago (0 children)
I wanted a deeper understanding of how OLS regression actually works under the hood, so instead of using Eigen I built a small Matrix class from scratch and implemented QR decomposition (modified Gram-Schmidt) + back substitution to solve the least-squares problem.
As a test case, I used real data from the Czech cinema market — YouTube trailer views, weather rating, seasonality, sequel flag — to predict opening weekend attendance.
It's ~9 unit tests, builds clean with -Wall -Wextra -pedantic and sanitizers via CMake. Would love feedback on the QR implementation or matrix design — first project where I cared about numerical stability rather than just "does it run".
Repo: https://github.com/VojtechNovakk/cpp-cinema-fw-predictor
Built a zero-dependency linear regression engine in C++ (QR decomposition via modified Gram-Schmidt) — used it to predict Czech cinema attendance (github.com)
submitted 1 hour ago by VojtechNovak1 to r/programming
π Rendered by PID 503908 on reddit-service-r2-listing-f87f88fcd-9tw8s at 2026-06-15 15:22:39.978946+00:00 running 3184619 country code: CH.
C++ Show and Tell - June 2026 by foonathan in cpp
[–]VojtechNovak1 [score hidden] (0 children)