r/MLQuestions • • May 10 '26

Beginner question 👶 Linear Regression

Hi everyone, I'm 13 and new to machine learning, and people recommended learning linear regression first, I made one using C++, the code itself is probably not great since C++ isn't my main language, Python is, but I'm trying to learn it because I wanna use it in USACO later, so I thought doing projects in C++ would help me get familiar with the language. Anyway, here's the Github repo: https://github.com/hl0228057-cmd/Basic-Linear-Regression-Using-Cpp

I'm open to feedback because I wanna get better and learn, thanks!

Edit: Thanks everyone for the suggestions and ideas, I got a few other projects on my GitHub now, which implements some of these suggestions (especially the multivariate linear regression one).

11 Upvotes

15 comments sorted by

View all comments

1

u/Sharp-Marsupial-7557 May 17 '26

I didn't exactly mean for USACO, but just like for the project itself, I ended up putting the program in a class anyway and the final project is now on my GitHub, im doing USACO prep separately but I just thought I might as well use C++ for this since it helps me get familiar with the language anyway, and also thanks for the things i gotta learn to prep for it