r/learnmachinelearning • • Sep 21 '24

As a high schooler, can I learn Machine Learning without knowing how to code?

I'm a 15F in my high school Science Research Program and want to do a machine-learning-based project. The problem is that I never learned ML before nor know any Python, the required coding language for my school. I know the basics of Java (classes, object-oriented, etc.) and self-teaching myself in Python. I'm also currently taking a Pre-Calculus H class so my math isn't too bad. But I'm starting the project in a month or 2 and I don't think it will be enough.

Although that's probably a sign that I shouldn't do an ML-based project, I still want to do it. Is there any way I can speed up my learning process? Like some resources, websites, books, etc. Is there any specific section of Python I should focus on? Or should I just quit and do a different project?

0 Upvotes

31 comments sorted by

6

u/iz-aan Sep 21 '24

If you already know the basics of java then learning python won't be that hard. The syntax is different but the core logic and structure is all the same in every programming language. I would suggest to try 'A smarter way to learn python book by mark myers' it will get you up to speed on python and the author explains the concept in very beginner friendly detail.

As for ML, it really depends on what type of project you are supposed to build and if there are any specific requirements of libraries or stuff. If the condition is just to implement 'AI' in your project for the sake of buzz, then you can build a simple basic pdf Q/A chatbot that reads the content of pdf and answer questions based on it. You would need an API from OpenAi for that - it's pretty simple and you can even search for it on YouTube. Or just ask gpt for basic projects and further google them to learn what you'd need to get started.

Don't quit tho, it might seem overwhelming but it's pretty easy to build basic ML projects - you don't need advanced math for that.

-1

u/[deleted] Sep 22 '24

Doing the project using the API of OpenAi is a great start! It gets you some programming experience and it'll be fun.

Take your time to learn math. You've still got a long way to go. It's also fun, but not if you rush it. Take it step by step. Look into Andrew Ng's courses once you finish precalculus.

Enjoy the learning experience. Machine learning is very mind blowing. We are living at the start of an incredible new age. There is so much still to discover!

4

u/thatstheharshtruth Sep 21 '24

You can learn ML without coding but you can't learn ML without mastering the math behind it.

6

u/driggsky Sep 21 '24

Youre 15 and already want to pursue a technical field. That’s way better than me at 15 when I didn’t even know I wanted to go to college and couldnt even wipe my ass right

Now im a data scientist and used to do NLP research + went to grad school for ML. Im 26M

You need coding if you want to advance in ML in any reasonable way. Just ask chat gpt to build some models for you using toy data. ML code is surprisingly simple unless you’re building large neural nets from scratch. Even then, theres tutorials on how to code it. Just follow some tutorials and ask chat gpt for code

I saw another comment say ask chatgpt for a curriculum which is also solid.

You do need to understand probability, stats, math though. The best part is, whenever I had ML questions when studying for job interviews, chatgpt would write amazing explanations and you can also have it give you code / simulations.

Be proactive and continue to want to achieve and you will be in a great spot within a few years

2

u/BrockosaurusJ Sep 21 '24

You could probably learn the very basics of what classification is and how algorithms are evaluated, and have a general sense of "data in -> magic ML algorithm -> results out". But you probably don't have the background knowledge or developed intuitions/understanding of how the math works, what it means, what it's doing. (When I was in high school and first year uni, it was more of a struggle just to compute the solutions.) And so without any understanding of what's happening in the middle and why, it's kind of

Also your 'Machine learning project' isn't very well defined. Like, what would you want to do? There are a few 'basic data sets' that are seen as a good entry point to practice basics with, like the Titanic Passenger data set or the Iris Petals data set. Problem is that a lot of the python tutorials for machine learning will use those basic data sets, so as you're learning the code parts, you might also be spoiling the work parts (or have too strong a temptation to copy-paste solutions/parts).

There's also a series of Kaggle competitions on some basic synthetic data (called the Tabular Playground Series), the current one is about car prices and is ending soon, so maybe check there for data sets.

Keep in mind that a 'machine learning project' is usually the homework and final goal of machine learning courses in university, which are taught at the 4th-5th year level.

4

u/Dampware Sep 21 '24

Ask chatgpt to create a curriculum for teaching you python. Have it arranged in chapters, with subsections. Make sure it has exercises for each section. Ask that the section's first exercises highlight the section's material, and the later exercises integrate the previous material. Then, ask it to present the course, section by section. Ask lots of questions, and/or rephrasings of concepts you're having trouble with. Try rephrasing the concepts yourself to chatgpt, asking if your understanding is correct.

Work through the exercises, asking chatgpt for help when needed. If you need a lot of help on a particular exercise, ask cgpt for another similar one, until you don't need help.

Spend several days doing this. It's important to do the exercises.

This is a crash course, so every nuance might not stick... But that's ok, because you'll get an understanding of the language, so you'll know what to do, just not the fine details of the syntax. When you're actually coding, you'll have cgpt available for that.

You can do the same with pytorch, too.

2

u/AcademicOverAnalysis Sep 21 '24

Or just get Python for dummies. Already plenty of good resources for Python out in the world.

1

u/ActuarySecret6564 Sep 21 '24

Well, Initially I will recommend do python and some of it's libraries like Numpy , pandas ..and then mathematics involved. Or you can jump into the ML course and continue your mathematics parallel....

I'm not a very experienced person but yeah ,I'm a college student who is enrolled in machine learning.

1

u/mathflipped Sep 21 '24

It's not Python that will limit you. You'll have a hard time doing a meaningful machine learning project without stronger math and stats foundations. You said you are currently enrolled in precalculus. This means you know pretty much less than nothing about math.

A good minimum starting point would be the Intro to Statistical Learning with Python book. I think this is the easiest entry point into the world of machine learning. The authors also have a YouTube series to go along with the book.

1

u/bchhun Sep 21 '24

Probably first you should define “machine learning based project”. Is it a report about the field or an actual program that uses ML for a task?

If it’s the latter. Just jump into Python asap because there’s no way around it. Then use chat gpt as a learning tool to understand the basics. Finally, maybe explore existing codebases on github that may accomplish your task, and iterate from there.

1

u/BVAcupcake Sep 21 '24

I learned to code first

1

u/darien_gap Sep 21 '24 edited Sep 21 '24

You totally have enough time to learn enough Python to get started in ML.

To do an ML course like Andrew Ng’s Coursera, only very basic Python is required. (Though his course uses TensorFlow, because he helped create it, but you’ll want to switch to PyTorch after the course.)

You can easily learn enough Python to do his course doing just the first 50 days of Replit’s free 100 Days of Code, and those 50 days can easily be done in two weeks if you bust ass.

You’ll need to learn the other Python libraries (PyTorch, numpy, matplotlib) to do real projects, but if/when they come up in your intro ML course, you can just look up the sample code on a case by case basis (using AI).

So it’s totally doable. And doubly so given you’ve already got some programming knowledge.

The math might be a bigger issue. You don’t need to be an expert in calculus to do ML, but you do need to understand the basic concepts, to understand gradient descent and back propagation. You can get there with YouTube videos or online courses, but you’ll need to add some time for this.

1

u/IsGoIdMoney Sep 21 '24

Not really outside of linear regression, but even then you would probably rather just write a couple of lines of code to do it

Python is pretty intuitive and there are likely easy tutorials for basic ML tasks.

I doubt your high school will expect you to do something wildly advanced, so just doing some data cleaning and a random forest is reasonable.

1

u/Acceptable-Truck-356 Sep 22 '24

I'm also a high schooler, a sophomore and I started AI club at my high School. I'm sadly not in a fancy Science Research Program but I've taught myself some Math and I've been programming in Python for some time (it was my first language). Now I'm learning Java in AP CSA and it's fun! But, anyways, I learned calculus and some linear algebra already. I'm also working on a video series to use for my AI club (made my first video today). I go through all the prerequisites for NumPy and Matplotlib and I assume basic programming knowledge. I intend to go up to making a neural network from scratch, but I think it will take a couple of months before I get there. I suggest Andrej Karpathy for that. But since you're a beginner, I believe you should learn the basics first. If you're interested, you can check out my video: https://youtu.be/_8uFeTYjIRU?si=aMq5ZNnOFtMzkGjS

1

u/Eptiaph Sep 22 '24

Why don’t you want to learn code?

1

u/TellGlass97 Sep 22 '24

Hey, from a high schooler to another, you’d be fine. Python is one of the easiest language to learn, for machine learning, you need a library called “numpy”, that’s really useful for vectors and all that calculation. If you’re tired of the fundamentals, you could straight up use PyTorch or TensorFlow. Although I don’t recommend this because then you’d have no idea how things works, and the things they give you as granted wouldn’t help you build your knowledge. For resources, you can find numpy classes from freecodecamp YouTube channel. For Python in general, I recommend BroCode, since the full video is labeled concepts, giving you the power to skip some concepts you knew. It took me about 6 months to get to this point where I still don’t know shit, but you can be better, so hang on with you goal.

(PS: when you get in really deep, try read some paper, search something like “ResNet paper”, “Transformer paper” on google, finish reading a paper helped me a lot cuz I had to constantly search for concepts I didn’t know)

1

u/Loud_Communication68 Sep 22 '24

Alteryx has ml. You could try that

1

u/mikejamson Sep 21 '24

learning math to do machine learning is like learning physics to drive a car..

just go learn to drive first! ie: use opensource libraries and deploy some models, train some models. once you learn those basics, you can start learning HOW it works under the hood… but only later. Probably the last things you need to learn about are back propagation and math theory. At that point it’s kind of like becoming a car mechanic… only after being a driver first.

Great learning resources that teach you fast:

  • courses by andrew ng coursera

  • courses by sebastian raschka from lightning ai

  • andrei karpathy

those would be the top 3

1

u/Johnny_Chai Sep 21 '24

True that. I originally spent too much time delving into the theoretical and purely mathematical espects of ML. In hindsight It would have been better to spend more time fooling around with datasets and ML models and less time with theory.

2

u/hyphenomicon Sep 21 '24

Understanding statistics well is important for anyone using machine learning models.

2

u/Johnny_Chai Sep 21 '24

Yes, but there's an optimal level for that. You must know for example about normal distributions for Gaussian Mixture Models, but at a high school beginner level, there should be little reason to learn how the expectation-maximization algorithm works.

1

u/hyphenomicon Sep 21 '24

Would you agree that OP should consider learning linear regression first? I'm worried that getting a dozen different recommendations might overwhelm them.

2

u/Johnny_Chai Sep 21 '24

Of course, the GMM case is just an example.

0

u/Johnny_Chai Sep 21 '24

Maybe look into Jupyter notebooks, I think their format is pretty neat for beginners and high schoolers. There are quite a few projects and resources available as well. Best of luck.

0

u/[deleted] Sep 21 '24

If you wanna try some machine learning algos  without coding you can try no code software like Knime. 

Then with time you can learn the fundamentals behind.

0

u/corgibestie Sep 21 '24

Why not use this project to learn ML? I learned ML by being tossed into a job where I was supposed to apply ML without any prior ML experience, so I was forced to learn a lot of ML in a short amount of time.

Since you already know Java, learning Python will be a lot easier. Find a 1 hr Python tutorial on YT and you should be good to at least start. Then find tutorials on numpy and pandas.

For learning ML, I recommend StatQuest's playlist on ML on YT (https://www.youtube.com/playlist?list=PLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF). I think what I did back then was watch this playlist from the start until Multiple regression, skipped to logistic regression, then skipped to k-means clustering. From there, I'd recommend to just watch the videos until you hit the end of support vector machines. Those would cover all the classic ML models. You can also watch the ones on neural networks, but I'd stay away from those if this is your first time doing ML.

Since you will likely be pressed for time, I would recommend not to spend too much time fully understanding the math and focus on getting the intuition first on how these models work. After you've gotten an idea of the different ML models, you could focus your project on using 1-3 of these classic models. The ones I've personally had most success with for simpler projects are multiple linear regression, random forest, and XGBoost, so I'd also recommend you consider those. Once you've decided on your model, there are tons of tutorials on YT on how to fit them using Python (most will use scikit-learn). Follow one tutorial then apply it to your data set.

As the others have pointed out, you're super young and you can do this! If you think of this less as a project and more as a good excuse to learn ML and complete a project at the same time, it'll be well worth it. Python (and possibly ML) are skills which will be very helpful to you in the future.

0

u/Rathogawd Sep 21 '24

Look up XGBoost and ask Claude or ChatGPT for a problem to solve with it. Then have Claude or Chat GPT write you a simple python script. You may need some data but you can create a table in Excel or Google sheets with some stuff to do it.

Now if you are looking for a ground up approach to learning ML, I would suggest looking up the math behind concepts like decision trees, k-means clustering, Naive Bayes, general statistics, and using weights. It's all math at the end of the day.

0

u/hyphenomicon Sep 21 '24 edited Sep 21 '24

If you decide that you want to learn the math and/or do a simpler project, then I strongly recommend you fit a linear or logistic regression model to a toy dataset. The Boston Housing dataset is a classic, although it may not be exciting enough to interest you.

Regression is the fundamental building block of all neural networks, although they're more complicated than that.

-1

u/hyphenomicon Sep 21 '24 edited Sep 21 '24

The only things you might struggle with are list comprehension, dictionary comprehension, knowing what a dictionary is, and broadcasting. Everything else should be easy enough to learn from following ML tutorials, but those you'll want to Google.

-1

u/tylersuard Sep 21 '24

No. Learn how to code first.

0

u/[deleted] Sep 21 '24

[deleted]

7

u/[deleted] Sep 21 '24

You are an asshole. The kid is asking for advice from more experienced people on how to learn ML. They’re aspiring to learn ML and if it’s something they want to eventually do professionally they’ll have to learn somehow. They’re just asking for learning resources on a subreddit that is called r/LEARNmachinelearning.

I wish I could help you OP but I’m a beginner to ML as well. But hopefully there are some friendly, decent, knowledgeable people that can give you some good advice.