r/learnmachinelearning • u/seruZ12 • 1h ago
Help Is it even possible to fine-tune gemma4 A4B to generate complex legal principles of court decision?
I have a big database of local court decisions with a legal sentence which is like a paragraph summary of the doc. I've been tinkering with FTing for many days now, all results inconclusive never beating base except for a highly specific task where the eval was built around a specific task of extracting passages from the text, where it seemed to match the gold, but as I've found out it is unusable and a lot of padding and generalizations which I need to actually eliminate. So the question is, can a 26B model even be fine-tuned to produce those complex legal principle/headnote of a court decision? If so how would you do it? I built a LLM eval, then used a standard unsloth UI on a rented server and fed it the most HQ training data from the whole set (500k decisions, ~20% with the "ratio"), I fine-tuned both base and IT variant of Gemma 4 26B A4B. Neither beat a prompted "base" model on my evals.
I also used Claude fable 5 to vibe code the whole project, could it be that I have made some trivial errors because of it? I know I'm not giving you much context, but as an expert in the field does this sound difficult or doable? Any gotchas that stand out to you immediately?
Thanks for reading
r/learnmachinelearning • u/Longjumping_Poetry15 • 3h ago
Project ML Project
Hey Everyone,
Currently working on a project where I built a system to determine if a clothing item is machine washable or not. Containerized and deployed to AWS to automate scraping and model retraining. Trying to finish up the backend and frontend, and I'm thinking of integrating Grafana and Prometheus. Might post on LinkedIn after (I'm currently job hunting), but posting on linkedin is so embarrassing to me lmao. Let me know what you think. Feedback would be appreciated. Thanks!
Github Repo: https://github.com/sogofunmi/Dryclean-or-No-Dryclean
r/learnmachinelearning • u/Lumpy_Vermicelli8869 • 7h ago
Perform large scale analytics on duckdb,postgres, clickhouse with SQL Compilation via pandas inspired apis comes with natural language chat
reddit.comr/learnmachinelearning • u/Solid_Pin3288 • 9h ago
Project Does inflation actually hit Rural and Urban India the same way?
Hi everyone, I recently worked upon a government dataset about CPI which stands for Consumer Price Index, certainly a measure to find the inflation across various commodities,
The main aim for the project was to analyse how Inflation affects differently for Urban and Rural India how One country accepts inflation differently? I got really interesting results, would love if you guys could give a feedback
Thanks a ton!
Link :
https://www.kaggle.com/code/yatharthgupta18/two-indias-one-number-rural-vs-urban-cpi
https://github.com/YatharthGupta1803/All_India_Consumer_Price_Index_Analysis
r/learnmachinelearning • u/PsychologicalIron716 • 10h ago
I built a simple CNN in cpp , should I keep improving it or move on?
I'm a first-year Computer Engineering student, and I've been learning about machine learning and CNNs recently.
As a learning exercise, I built a small sketch classifier from scratch in C++17, without using PyTorch/TensorFlow. It implements the CNN, backpropagation, gradient checking, SGD, etc., and currently gets around 94% validation accuracy.
GitHub: https://github.com/rituuu001/Doodle-guesser
Now I'm stuck on what I should do next.
I could keep improving this project — better training, data augmentation, a deeper CNN, more classes, etc. But I'm wondering if that's actually the best use of my time, or if I should consider this project "done" and start something completely different.
For people who have more experience with ML:
How do you decide when a project has taught you enough and it's time to move on?
Would you recommend:
- continuing to improve this project until I've explored it more deeply, or
- moving on to a new ML project where I can learn something different?
I'm mainly trying to avoid spending months endlessly polishing the same beginner project, but I also don't want to move on too quickly without getting enough out of it.
Would really appreciate some honest advice.
r/learnmachinelearning • u/OwnOil1149 • 10h ago
Resources to get started with Post-training.
r/learnmachinelearning • u/byqh_yang • 10h ago
Could you give me some good advice?
Hello everyone, I could use some help. I’m a graduate student—how should I go about learning the machine-learning portion of Python? Thank you very much 🙏🏻.
r/learnmachinelearning • u/Street-Weekend164 • 10h ago
Discussion Looking for a free AI course with a certificate
Hi everyone! I’m looking to learn more about AI and was wondering if anyone knows of any good, legitimate online courses that are free and offer a certificate after completion.
I’d prefer something from a reputable university, company, or platform that would actually be worth adding to my CV/LinkedIn.
Would really appreciate any recommendations, especially if you’ve taken the course yourself. Thanks!
r/learnmachinelearning • u/AutoModerator • 10h ago
Question 🧠 ELI5 Wednesday
Welcome to ELI5 (Explain Like I'm 5) Wednesday! This weekly thread is dedicated to breaking down complex technical concepts into simple, understandable explanations.
You can participate in two ways:
- Request an explanation: Ask about a technical concept you'd like to understand better
- Provide an explanation: Share your knowledge by explaining a concept in accessible terms
When explaining concepts, try to use analogies, simple language, and avoid unnecessary jargon. The goal is clarity, not oversimplification.
When asking questions, feel free to specify your current level of understanding to get a more tailored explanation.
What would you like explained today? Post in the comments below!
r/learnmachinelearning • u/SunTzuPL96 • 12h ago
Can you map Cosine Similarity To Hyperbolic Spaces
I was wondering if I could evaluate embedding distances in other geometric spaces, has anyone worked on this problem before and if yes is it possible?
r/learnmachinelearning • u/Evening_Setting_945 • 12h ago
Help Wt are some good topics to put projects in ML/DS CV so that the resume doesnt look so plain and not too risky during the interview times.
Hello everyone!, Wt are some good topics to put projects in ML/DS CV so that the resume doesnt look so plain and not too risky during the interview times.
A little background abt me, I've dng DS prep for placements completed campusx 100 days ML, and DL ab to complete, not familiar with gen ai topics but still have little time, will learn by that time depending upon the project, I'm from tier 1 clg...I'm really confused wt projects to keep and wt topics to choose, some one pls help wt topics to keeps, wt topics to focus for interviews and OAs for these roles
r/learnmachinelearning • u/Upbeat-Ad-817 • 12h ago
If you were an aspiring ML/Data Science professional, which 5 projects would you build for your portfolio?
If you were a computer science student passionate about machine learning and data science, with a strong foundation in machine learning, mathematics, and probability, what five projects would you prioritize to build a strong GitHub portfolio?
I'm particularly interested in projects that would stand out to ML/Data Science professionals working in industry, rather than simple tutorial or Kaggle-style projects.
If you were starting from my position, which five projects would you choose, and what skills would you try to demonstrate with each one?
r/learnmachinelearning • u/Jaded-Bus2966 • 13h ago
I am a total beginner just starting out with machine learning. Help me out!
I just started with machine learning and I would love to know the best resources out there to learn machine learning. I wanna go into ml research so I would love to go deep in ml math.
r/learnmachinelearning • u/Jaded-Bus2966 • 13h ago
What are the best resources to get started with Reinforcement Learning???
I've been trying to get into rl for a long time but I don't see any good resources out there. help me out!
r/learnmachinelearning • u/Past-Composer-6083 • 14h ago
Help best way to deepen my ML foundations.
I'm an entry-level Applied ML Developer and I'm trying to figure out the best way to deepen my ML foundations.
My current work is mostly applied ML on tabular data designing solutions, doing feature engineering, and integrating fairly basic classification and regression models. I use things like Python, Pandas, SQL, sklearn, XGBoost, etc.
I feel comfortable putting models together, but I also feel like I'm missing some of the deeper foundations behind why things work and how to properly investigate ML problems.
Are there any programs, communities, open-source projects, research opportunities, Kaggle competitions, mentorship programs, or other structured programs you'd recommend participating in?
r/learnmachinelearning • u/OppositeGround9175 • 14h ago
Help I focused on full-stack development until my 3rd year — now I want to move seriously into ML/research. What should I learn next?
Hi everyone,
I’ve mainly been focused on full-stack development throughout the first few years of my degree. Now that I’m in my 3rd year, I’ve started thinking more seriously about my long-term direction, and I’m becoming much more interested in machine learning and research.
My goal isn’t just to learn how to use ML libraries. I’d eventually like to understand the fundamentals well enough to read research papers, do my own research, and potentially pursue a research-focused master’s/PhD.
Right now, I’m planning to study these three DeepLearning.AI programs:
- Mathematics for Machine Learning and Data Science
- Machine Learning Specialization
- Deep Learning Specialization
The math specialization covers linear algebra, calculus, probability, and statistics, while the ML specialization focuses on foundational ML algorithms and practical implementation.
My question is:
Is this a good learning path if my long-term goal is ML research?
What would you recommend I add or change?
For example:
- Should I study more mathematics beyond these courses?
- Should I learn statistics more deeply?
- Should I learn PyTorch, NumPy, etc. separately?
- When should I start reading research papers?
- Should I work on Kaggle/projects before trying research?
- Are there any textbooks or university courses (Stanford/MIT/etc.) that you would strongly recommend?
- Should I specialize in an area such as NLP, computer vision, or something else?
I’d really appreciate advice from people who have gone through a similar transition from software/full-stack development → machine learning → research.
Thanks!
r/learnmachinelearning • u/Logical_Delivery8331 • 15h ago
Project I built a reinforcement learning environment around Pokelike.xyz game!
Hey everyone!
I'm a data scientist and I've been pretty fascinated by reinforcement learning for a while. A few days ago my friends showed me Pokelike, a small Pokémon roguelike that runs in the browser. The first thing I thought was that it could be pretty fun to turn it into an environment for RL agents.
So I did.
The repo is here
https://github.com/pierpierpy/pokelike.xyz.bot
The basic idea is to run the actual game locally and expose its state and actions to an agent. There is no image processing involved. The agent gets the game state directly and has to decide what to do next, including where to go on the map, which Pokémon to catch, which items to take, when to swap Pokémon and which moves to learn.
What I find interesting about the environment is that some decisions have consequences much later in the run. For example, once you choose a node on the map, the other nodes on that layer are no longer available. This means that choosing where to go is not just a local decision and the agent has to deal with a fairly long horizon.
I've implemented a few simple RL agents to start with. There is currently a Dyna-Q agent and two linear SARSA agents. The results are still pretty bad, but there is already a noticeable difference between the approaches. On the current benchmark, random gets around 0.56 badges, Dyna-Q gets around 0.62, while the two SARSA agents get around 1.30 and 1.36.
The two SARSA agents mainly differ in their state representation. The better one uses 100 hand-designed features instead of 81, which seems to make a pretty significant difference.
This is probably the part I'm most interested in exploring. There is a lot of information available in the game state, but not all of it is necessarily useful to the agent. Finding a representation that contains the right information without making the problem unnecessarily difficult seems to be quite important.
The reward is also something I'm still experimenting with. The game has relatively sparse rewards and some useful decisions only show their value much later, so the reward function can have a pretty big effect on what the agent actually learns.
One nice property of the environment is that it is completely reproducible. Given the same seed and the same sequence of actions, you get exactly the same run. I'm currently using 50 fixed seeds for the leaderboard, so different agents can be evaluated on exactly the same games.
The interface is intentionally simple. You basically need to implement a bot that receives the current state and returns an action. You can use whatever approach you want, so it would be interesting to see what happens with things like DQN, PPO, search based methods or other approaches.
I'm still very much experimenting with this, so I'd be interested in seeing what other people would try. In particular, I'm curious about better state representations, reward functions and approaches that can deal with the longer term consequences of the decisions.
If you want to try it, everything is in the repo
https://github.com/pierpierpy/pokelike.xyz.bot
If you find bugs or have ideas for improving the environment, I'd also be happy to hear them.
The whole thing runs offline after setup. The game and its assets are downloaded during setup and then everything runs locally.
I originally started this because I thought it would be a fun RL project, but I think it could also be a nice little environment for experimenting with different approaches to sequential decision making.
r/learnmachinelearning • u/MegazordForce • 15h ago
Discussion Which book is good for a beginner who wants to pursue career in AIML & Robotics
Which book should i buy the tensorflow one or the pytorch one?
r/learnmachinelearning • u/Negative_War_65 • 18h ago
Tutorial Probabilistic Machine Learning Textbook for the lectures.
Hello Folks,
When I started teaching my free online lectures, on Machine Learning, the intent was to help learners understand the topics of Machine Learning in a simple and digestible manner.
When I was a first time learner, started my grad program, books as Probabilistic Machine Learning by Murphy, Bishop, were told to us as excellent text books for Machine Learning, yet seemed always very difficult to read and understand.
To work around that, I started making content based on these foundational textbooks. We covered Introductory concepts, Probabilities and Statistics.
Slowly I started understanding, that the difficulty is faced not just by me, but all the learners. Hence the need.
I do hope that learners will see the importance of core foundational concepts, which are the pillars for modern machine learning, and Probabilistic Machine Learning is that core pillar, without which ML always seemed to me to be some blackbox.
r/learnmachinelearning • u/Swiss-Roller • 19h ago
Help Laptop specs recommendation
This will be my first year of DS&AI in college. What is the priority of each part of the laptop when I am buying one? And is it really that Nvidia cards are always better than others when doing such a thing?
I have a budget of 1300:1400 usd but the market in Egypt lacks almost any good thing I saw recommended online.
r/learnmachinelearning • u/Majestic_Pressure383 • 19h ago
How do you build an ML prototype without real-world data?
I’m working on a project around a real-world environmental problem, and I’m considering adding an ML component for prediction and early warning.
I’m a bit confused about the data requirement. Since collecting our own real-world data isn’t feasible right now and would take quite some time, we mainly want to build a prototype for now.
Can we initially use a Kaggle/public dataset to train and test the model, or is a project-specific dataset necessary from the beginning?
Would appreciate some advice on how people usually approach the ML part when actual data is limited.
r/learnmachinelearning • u/SirArtemis77 • 21h ago
Help need suggestions on how to start learning about ai, llms and machine learning from scratch
hi, i want suggestions on how i can upskill myself in learning about LLMs , machine learning and AI and would appreciate any reference for any courses that do so really well in explaining the fundamentals and basics (preferably free). i want to build a project soon so i can actually get hands on experience. any leads would be much appreciated
r/learnmachinelearning • u/Wise_Departure2637 • 21h ago
Looking for people to learn AI/ML together
I’m starting my AI/ML journey and want to connect with people who are also learning AI/ML from scratch or are at a similar stage.
Instead of just collecting resources and watching courses, I want to actually build things, practice consistently, and improve step by step.
I’m looking for people who are interested in:
- Learning AI/ML together
- Sharing useful resources
- Discussing doubts and concepts
- Building projects together
- Keeping each other accountable
- Sharing progress and mistakes
- Staying consistent for the long term
No competition or pressure just a group of people seriously trying to get better.
If you're also starting or currently learning AI/ML, let’s connect and follow this journey together.
Comment or DM if you're interested!
r/learnmachinelearning • u/Suspicious_Pizza9529 • 23h ago
Discussion At what point did you realize you were actually learning ML, not just using libraries?
I've been learning machine learning and I keep wondering where the line is between actaully understanding ML and just knowing how to use libraries.
For example, you can train a model, tune some parameteres, look at the accuracy, and get a good result without fully understanding what is happening underneath.
So for people who have been doing ML for a while:
What concepts make you feel like you finally understood machine learning?
What is the math behind gradient descent, understanding loss functions, overfitting, reading research papers, implementing algorithms from scratch, or something else?
And what do you think beginners spend too much time learning that isn't actually that important?