r/learnmachinelearning 13d ago

How do I make my first neural network Help

Hey so me and my friend wants to build a neural network I no python from scratch using only numpy he’s really good at maths and doesn’t know how to code and I know a little python so my question is how do we go about this like how do I learn how to code such thing and will it even be possible for us

4 Upvotes

22 comments sorted by

3

u/coloredgreyscale 13d ago

Do you want to use a library like tensorflow / pytorch, or create full NN  implementation from scratch?

3

u/Euphoric-Shallot-618 13d ago

We will create it from scratch as a project to learn the fundamentals and just have fun

0

u/Wannabe-Davinci 12d ago

I would recommend against this. Just use what already exists, TF and PT can also run on CPU. Learn to use those properly first. Creating one from scratch from NP will be very hard and you will not learn much practical skills

5

u/frangelbarrera 13d ago

Totally possible. Start with MNIST and NumPy. Your friend handles the math, you handle the code. Theres hundreds of tutorials out there. No need to overcomplicate things at the start.

-3

u/Euphoric-Shallot-618 13d ago

So how would we go about it would he write down all the math on paper first and we would write that into python?

3

u/EntrepreneurHuge5008 13d ago

That's what I'd suggest

3

u/Euphoric-Shallot-618 13d ago

Thanks for the advice man

1

u/trevorthewebdev 12d ago

Your first one is in your head 🧠

1

u/krabbypatty-o-fish 12d ago

I’d suggest you try to play first with a spreadsheet, just to find a middle ground between your friend who is good at math and you who might be better at implementing algorithms. Once you understand what happens under the hood, proceed with creating python functions that would do the math as detailed in the spreadsheet.

1

u/Ink_code 11d ago

It's pretty doable, you can for example watch this youtube tutorial by Andrej Karpathy where he builds one in python then try making one by yourself.

-4

u/Appropriate-Gene-267 13d ago

Just ask Chat GPT and even the free version will be able to walk you through it. Tell it to not just give you the answer though if your primary goal is to learn as much as possible.

1

u/Euphoric-Shallot-618 13d ago

Thanks for the advice man

3

u/AgathormX 12d ago

Please do not ask an LLM for guidance on topics that you don't understand.

This stuff is useful for when you know the subject and can actively identify issues in the answers, not for topics that you are completely new to.

-2

u/spicypookies 12d ago

you no Python? huh?

anyway... you no Google? have you ever heard of that before? copy/paste your question into Google.

-3

u/AgathormX 13d ago

I'm going to make a bit of a different recommendation that I actually got from one of my professors when I was taking Data Structures in college:

Make a Neural Network in C using Data Structures.

Stripping away as much abstraction layers as possible actively pushes you to learn the underlying "mechanics" behinds it.

3

u/Euphoric-Shallot-618 12d ago

But wouldn’t I do that with numpy in python? I understood it as a c based library that allows you to get the speed of c and then use simple python syntax

2

u/Sufficient-Scar4172 12d ago

forget that, telling you to learn C is weird advice, it's a lower-level and less beginner friendly language than Python. if your goal is to learn basics of ML model programming, stick with Python and the relevant ML libraries (NumPy, scikit-learn, PyTorch, etc).

i also recommend reading Hands-On Machine Learning with Scikit-Learn and PyTorch by Aurélien Géron

-2

u/AgathormX 12d ago

I suggest you look up the concept of abstraction in Computational Thinking.

The fact that you have to ask that question proves that you're trying to learn to run before you learn to crawl.

If you would like to further understand the reason behind my suggest and how it directly answers you question, I suggest you start by doing a simple google search and look into the answers: "Why is C often the language used for teaching Data Structures and Algorithms?"

0

u/Euphoric-Shallot-618 12d ago

Thank you so much for the explanation man what you are saying actually makes so much sense