r/learnmachinelearning • • 24d ago

Data science and AI student looking to connect with people interested in ML, Deep Learning, and Kaggle

12 Upvotes

I’m a fourth-year Artificial Intelligence student from Jordan, and I’ve been getting more involved in machine learning, deep learning, and NLP.
Lately, I’ve been trying to move beyond just studying concepts and actually build things, experiment with different models, and improve my skills through hands-on projects.

I’ve also started getting more active on Kaggle, where I’m learning how to build better notebooks, participate in competitions, and hopefully contribute something useful to the community.
I’m still learning, and there’s a lot I want to improve, especially when it comes to model optimization, Transformers, and more advanced ML techniques.

I figured I’d introduce myself here because I’d love to connect with others who are on a similar journey, whether you’re a beginner, a student, or someone with years of experience.
Here are my profile if you’d like to check out my work:
Kaggle: https://www.kaggle.com/zainallateef


r/learnmachinelearning • • 24d ago

Project I built a free platform to learn ML by solving problems, from NumPy to transformers and advanced research, now used by learners from 87 countries (feedback welcome)

29 Upvotes

Hi everyone,

I coach the French team for IOAI (International Olympiad in Artificial Intelligence). To train my students, I built ioai.artix.tech, and it is now open to anyone who wants to learn ML.

About 550 people from 87 countries use it so far. I would love feedback from other people learning ML!

It's a problem-based mastery learning platform, which means that you discover the concepts on your own through a curriculum and by solving problems. The corrections are meant to explain you the theory that you just discovered on your own!

The curriculum is designed to be high schooler friendly (so mathematic concepts are not prerequisites), and should allow any motivated learner to get from "zero" to "hero" in ML. It was made starting backwards from the IOAI syllabus.

It has now a few hundreds of exercises over 6 levels: 1. data analysis, 2. classical ML with scikit-learn, 3. neural networks from scratch, then PyTorch, 4. vision, NLP, audio and advanced ML 5. transformers and LLMs 6. research level problems.

https://ioai.artix.tech/?src=reddit-lml

P.S. We are running a free ML contest on the platform on Saturday, November 28 (12:00 to 15:00 UTC), open to beginners and advanced profiles alike, with prizes to win. I may make a separate post to announce it, but you can already find the details and register here: https://ioai.artix.tech/contest?src=reddit-lml


r/learnmachinelearning • • 24d ago

Neural Canvas

1 Upvotes

My Journey to Understanding Neural Networks: From Matrix Algebra to JAX and Optimizers

I wanted to understand neural networks as deeply as possible. Rather than simply using an existing framework and training a model, I decided to build an interactive MNIST webpage called Neural Canvas, using p5.js for visualization.

My primary goal was not just to achieve high accuracy. I wanted to understand what was actually happening inside a neural network, mathematically and computationally.

1. Starting with Linear Algebra and Matrix Operations

One of the first decisions I made was to avoid working with individual scalar values and complicated subscripts and superscripts everywhere. They made the mathematics unnecessarily confusing for me.

Instead, I decided to approach neural networks through matrix algebra.

I represented the forward propagation equation as:

[
Z=WX+bC
]

Where:

  • (X) is the input data matrix. Rows represent features, and columns represent individual samples.
  • (W) is the weight matrix. Rows represent neurons, and columns represent the weights associated with each neuron's inputs.
  • (b) is the bias column vector, containing one bias value per neuron.
  • (C) is a row vector containing only ones, allowing the bias vector to be broadcast across all samples through matrix multiplication.

Interestingly, many popular deep learning frameworks, including PyTorch and TensorFlow, commonly use a different convention for arranging their data and parameters. They also handle bias broadcasting without explicitly introducing a matrix like (C).

However, I preferred my own mathematical convention because it helped me understand the operations and perform calculus directly in matrix form.

I believe the mathematics should handle the indices, not me!

2. My First Model: NumPy, MSE and Vanilla Gradient Descent

For my first model, I used the original MNIST dataset.

Architecture:

[
784➜ 20 ➜ 20 ➜ 10
]

I manually wrote all the forward propagation equations, derivatives, and backpropagation calculations on paper before implementing them in Python using NumPy.

I deliberately chose:

  • Two hidden layers with 20 neurons each.
  • Mean Squared Error (MSE) as the loss function.
  • Vanilla Gradient Descent.
  • Linear output values.

Why such a simple approach?

Because I didn't want to start with complicated algorithms. I wanted to understand the fundamentals first.

After 2,000 epochs, the model achieved approximately 92% test accuracy.

I then successfully created an interactive neural network visualization in p5.js, using Math.js for matrix multiplication in JavaScript. The webpage could perform inference using my trained NumPy model.

That was the beginning of Neural Canvas.

3. My Second Model: Cross-Entropy Loss

For the second model, I kept the same mathematical approach but made a few improvements.

Architecture:

[
784➜40 ➜ 40 ➜10
]

This time, I replaced MSE with Cross-Entropy Loss and used a softmax output layer.

I was still using vanilla Gradient Descent.

After 2,000 epochs, the model achieved approximately 96% test accuracy.

At this point, I was finally starting to understand how neural networks worked, rather than just following tutorials or using existing implementations.

4. My Third Model: Discovering JAX and Automatic Differentiation

For my third model, I wanted to experiment with three hidden layers.

However, I realized that manually deriving every equation, especially the derivatives and chain rule calculations required for backpropagation, would take a considerable amount of time.

Then I discovered JAX, a Python library developed by Google.

JAX provides automatic differentiation (Autograd), allowing me to calculate derivatives of a loss function with respect to parameters, including entire weight matrices.

This was a significant change in my workflow.

I no longer needed to manually derive every gradient and implement the chain rule myself. I only needed to define the model, its parameters, and the loss function. JAX handled the differentiation.

For this model, I used the Arabic Digits MNIST dataset.

Architecture:

[
784 ➜ 20 ➜ 20 ➜ 15 ➜10
]

I used:

  • JAX for training and automatic differentiation.
  • Cross-Entropy Loss.
  • Vanilla Gradient Descent.
  • Three hidden layers.

After 2,000 epochs, I achieved approximately 96% test accuracy.

I genuinely fell in love with JAX. It saved me considerable time and allowed me to focus more on understanding the mathematics and experimenting with neural network architectures.

5. My Fourth Model: Mini-Batch Gradient Descent and Momentum

For my fourth model, I moved to the Persian Digits MNIST dataset.

I kept the same architecture as my third model but decided to experiment with optimization algorithms.

My original plan was to implement Mini-Batch Gradient Descent with Adam.

However, I realized that understanding Adam required learning a few concepts first. So, instead of jumping directly into Adam, I decided to start with Momentum.

I implemented Mini-Batch Gradient Descent with Momentum using JAX.

And here came a surprising result!

I achieved approximately 96% test accuracy in just 200 epochs.

Previously, my models required around 2,000 epochs to reach a similar accuracy.

This was another important step in my journey. I started understanding how optimization algorithms could significantly influence the training process.

6. What's Next?

I haven't created my fifth model yet, but I already have a learning roadmap:

  • Model 5: Mini-Batch Gradient Descent with RMSProp.
  • Model 6: Mini-Batch Gradient Descent with Adam.
  • After that: Start exploring Convolutional Neural Networks (CNNs).

I want to understand each optimization algorithm mathematically and implement it myself before moving to the next one.

My Biggest Takeaway

If you are starting to learn neural networks, my suggestion is:

Start with Linear Algebra. Don't immediately jump into advanced architectures, optimizers, or high-level frameworks.

You don't need to master every mathematical concept before starting, but at least understand matrix multiplication and how it represents the operations inside a neural network.

For me, representing neural networks using matrices made everything much easier to understand.

Start with the basics, build something yourself, experiment, make mistakes, and gradually increase the complexity.

Don't just train neural networks. Understand them!

Project: Neural Canvas

GitHub Repository: https://github.com/MuhammadEssa2002/neural_canvas

Live Demo: https://muhammadessa2002.github.io/neural_canvas


r/learnmachinelearning • • 24d ago

Project [P] We turned 10 years of ML papers into one page per topic: benchmark records, what got tried, what reviewers expect

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Help How to handle object deduplication across multiple camera angles using YOLO (especially for tiny 20x22px crops) across isolated user sessions?

3 Upvotes

I’m building a computer vision pipeline where users upload multiple photos of the same physical scene taken from different angles (front view, side view, close-up) to build a clean list of unique objects and their attributes
I’m running YOLO for object detection to extract bounding boxes and crop each detected object into lightweight ⁠.webp⁠ images. Because the same physical object appears across 3 or 4 different photos from different angles, I need to make sure each unique object is only counted once per session, and avoid running expensive downstream AI calls to re-describe an object we already processed from an earlier photo.


r/learnmachinelearning • • 24d ago

🚀 Jev-style decisions for IMAGES are here: Fovea-4B, an open 4B model leading on ImageJev tasks (Apache-2.0)

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Help Is it acceptable to retrain a machine learning model after conference acceptance if the original weights were not saved?

0 Upvotes

My machine learning research paper has been accepted at a conference, and I am currently preparing the camera-ready version.

The reviewers recommended additional experimental validation, including quantitative evaluation of the model's explainability/localization component.

However, I no longer have the original trained model weights because they were stored in a temporary cloud environment. I still have the original classification results, confusion matrix, training/validation loss curves, and visualization outputs.

To conduct the additional experiments, I would need to retrain the model using the same architecture, dataset, and hyperparameters. However, retraining may produce slightly different classification results from those reported in the accepted paper.

From a research integrity and publication perspective, would it be appropriate to retrain the model and update the results in the camera-ready version, or should I retain the documented original results and acknowledge the additional evaluation as future work?

The conference permits revisions addressing reviewer comments but prohibits major structural changes. I would like to understand the appropriate academic practice before making any changes.


r/learnmachinelearning • • 24d ago

Discussion 4 quintillion checks can't tell you if this 5-line program ever stops

Thumbnail
youtube.com
0 Upvotes

the five lines check goldbach's question from 1742 one even number at a time, and stop only if one fails. the video walks through them step by step, then asks four gpt and claude models if the program ever stops.


r/learnmachinelearning • • 24d ago

Help Where do I begin in AI? Is there any beginner courses or Youtube channels that can help me learn and improve my skills?

17 Upvotes

For the context, I am a CA Finalist and am currently doing my articleship. I do use Claude and Chatgpt for certain work at the office. But I know, what I am doing is not enough and I need to upskill. So, for a beginner like me, what would you suggest? Any courses or Youtube channels that will help me get started.


r/learnmachinelearning • • 25d ago

Training an AI to Drive with Natural Selection

34 Upvotes

r/learnmachinelearning • • 24d ago

Request Inside Figma's AI security playbook: Zero Trust, no VPN and sandboxed agent

2 Upvotes

Figma's CSO published their AI security playbook this week: Zero Trust architecture, no VPN, sandboxed agents. The central finding was stark — as AI agents take real-world actions, perimeter defense stops being meaningful and after-the-fact review stops being feasible. Project-by-project security reviews cannot keep pace with the speed at which enterprise agents act.

This matches what security teams across the industry are hitting. The window between an agent deciding to act and a human finding out keeps shrinking as agent autonomy scales, and the traditional review cycle was designed for a world where humans submitted changes for approval — not one where an agent fires off dozens of tool calls per minute.

For those running AI agents in enterprise environments: how are you actually handling the review latency problem? Tighter upfront scoping of what agents can invoke, runtime sandboxing, something architectural, or accepting a gap and investing more in detection?


r/learnmachinelearning • • 24d ago

Question Is there any relevant course regarding the new trends, e.g. the "agentic AI"?

11 Upvotes

Deeplearning.ai still seems to be one of the better resources. However, it has recently become flooded with courses, and I am starting to doubt their quality. I took the RAG course and was quite satisfied, but RAG is mostly information retrieval anyway. I'm really afraid that the agentic AI stuff, for example, is just a borderline scam or a waste of time. In IT, there has always been pressure to learn certain trendy technologies that become obsolete a few years later.

The agentic AI course started with Andrew Ng explaining how to set up agents to buy flight tickets and prepare weather reports. I know these are just examples, but I'm struggling to believe that Andrew Ng himself thinks this is useful. In his legendary Machine Learning courses, he taught many interesting applications of market predictions, visual object recognition like cancer detection, recommender systems etc., but now my BS radars are loud and it IMHO is seems like they joined the AI tech bros scam industry (sorry to say it loud, but I cannot help myself).

Even when I see some tutorials from Andrej Karpathy or Sebastian Raschka, for which I also have huge respect for, it seems like they are explaining LLMs with great enthusiasm but in the terms of practical application, besides coding and RAG it seems to me entirely overhyped or I just did not have the right problems to solve around me...

I am perhaps more interested in de-centralized local models usages, which seems like actually great idea vs paying big datacenters...


r/learnmachinelearning • • 24d ago

Linear regression with classic gradient decent algorithm

Post image
4 Upvotes

r/learnmachinelearning • • 24d ago

Project 🚀 Project Showcase Day

6 Upvotes

Welcome to Project Showcase Day! This is a weekly thread where community members can share and discuss personal projects of any size or complexity.

Whether you've built a small script, a web application, a game, or anything in between, we encourage you to:

  • Share what you've created
  • Explain the technologies/concepts used
  • Discuss challenges you faced and how you overcame them
  • Ask for specific feedback or suggestions

Projects at all stages are welcome - from works in progress to completed builds. This is a supportive space to celebrate your work and learn from each other.

Share your creations in the comments below!


r/learnmachinelearning • • 24d ago

Question Research papers

3 Upvotes

I wanna find a place where I can find most necessary/popular papers in one place. What i mean is the place in which those ones are chronologically ordered


r/learnmachinelearning • • 25d ago

why does L1 regularization push weights to exactly zero but L2 only shrinks them

42 Upvotes

i've seen the diamond vs circle picture with the loss contours touching a corner, and i get that the diamond has corners on the axes. but it feels hand-wavy to me, like why would the contours land on a corner so often instead of somewhere along a flat edge? the other explanation i've seen is about the gradient: the L1 penalty has a constant pull toward zero no matter how small the weight is, while L2's pull fades as the weight gets small. that makes more sense to me but i can't connect the two pictures. is there a clean way to see that they're the same idea?


r/learnmachinelearning • • 24d ago

Project I launched my first iOS app. Then the real learning started.

Thumbnail
reddit.com
0 Upvotes

r/learnmachinelearning • • 24d ago

Project I launched my first iOS app. Then the real learning started.

Thumbnail
reddit.com
0 Upvotes

r/learnmachinelearning • • 24d ago

Discussion I launched my first iOS app. Then the real learning started.

Thumbnail
reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

I trained a small affect/intent estimator instead of prompting for empathy - what held up, what I marked NO-GO

2 Upvotes

Most "empathetic dialogue" work I read about pushes the whole decision into the generative model: prompt it harder, add a system prompt about tone, hope the affect read was right. I wanted the read to be a separate, inspectable step that happens before generation, and I wanted it measured rather than asserted. eq-layer (0.2.5, MIT, Python, zero core runtime dependencies; scikit-learn appears only under the optional [ml] extra and the dev extra) is the result. This post is about what the numbers actually say.

Affect regression, EmoBank train/dev/test split 8062 / 1000 / 1000, evaluated on the untouched test split:

dimensionMAEtrain-mean baseline MAESpearman rho
Valence0.21250.24490.5460
Arousal0.17820.19040.3120
Dominance0.14940.15630.2573

It beats the train-mean baseline on MAE in all three dimensions, which is the honest ceiling of the claim: the Arousal and Dominance rank correlations are modest (0.31 and 0.26), so I would not call that a strong continuous affect model. The discrete emotion head is weaker still - accuracy 0.8249 against a majority-class baseline of 0.8166, macro-F1 0.4310, and on dev it actually sits below the majority class (0.8756 vs 0.8815). I publish those rows because "0.82 accuracy" without the baseline next to it would be misleading.

Four dialogue-signal experiments did not clear my bar and are labelled NO-GO in the README rather than quietly dropped. DialogBank correction (4 direct examples) and disagreement (1 example) are counts taken from a label inventory, not models I trained - the inventory's own decision record says not to train classifiers from it, and the README lists both rows as NO-GO for insufficient supervision. Coarse Discourse disagreement has a real ranking signal (test ROC-AUC 0.8111) but AP 0.1420 / F1 0.2278 is nowhere near precise enough to route challenge, and DBDC3 hard breakdown came out at ROC-AUC 0.5057, i.e. chance-level text-only generalisation. Negative results are part of the package.

Two things people hit immediately. The .joblib artifacts are not in the repo, so pip install eq-layer gives you the deterministic path - "runtime_mode": "lightweight-local", no model file needed. The affect adapter is the one you train yourself: python tools/train_emobank_affect.py --output artifacts/emobank_affect.joblib. Neither corpus is vendored, so both training scripts (the subtext one is tools/train_xdailydialog_subtext.py, also with a required --output) download their dataset and need network. The intent side has a middle option I use in benchmarks: TrainedIntent.from_bundled() fits at runtime from the 299-row intent_train.jsonl that ships inside the package, so it needs no artifact at all, only the [ml] extra.

That bundled fit is the learned arm of the latency numbers: ~1.2 ms median versus 0.1104 ms for the heuristic one, with intent inference accounting for ~92% of classification cost and routing ~2%. The learned path drifted about 9% run to run on the same machine while the heuristic path stayed within a few percent, so treat these as approximate. Both adapters score 1.000 on the 4 labelled seed cases, but only the learned one holds up on the 36-case holdout - a good reminder of how little a 4-case eval tells you.

The measured quantity is the layer's compute cost and the structural quality of its decision. There is no model in the measured path that generates prose, so end-to-end response quality still needs the paired human evaluation described in eval/AB_PROTOCOL.md, which I have not run.

GitHub: https://github.com/Furox-Art/eq-layer PyPI: https://pypi.org/project/eq-layer/


r/learnmachinelearning • • 24d ago

I spent $1,381 and trained an AI for 14,154 hours of Ocarina of Time gameplay just to teach it how to fight Deku Babas and Queen Gohma

0 Upvotes

r/learnmachinelearning • • 24d ago

Need a pre trained model of Sign Language Recognition

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 24d ago

Want to become an ai engineer HELP

Thumbnail reddit.com
0 Upvotes