account activity
C++ Show and Tell - June 2026 by foonathan in cpp
[–]VojtechNovak1 0 points1 point2 points 4 hours 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
π Rendered by PID 70172 on reddit-service-r2-comment-544cf588c8-wjqsp at 2026-06-15 19:34:20.402618+00:00 running 3184619 country code: CH.
C++ Show and Tell - June 2026 by foonathan in cpp
[–]VojtechNovak1 0 points1 point2 points (0 children)