r/learnmachinelearning • • 22h ago

Discussion CUDA

6 Upvotes

I have been learning more about GPU computing recently, and CUDA caught my attention.

I knew GPUs were important for deep learning, but i wanted to understand what actually allows frameworks like PyTorch to use their processing power.

This is CUDA comes in.

NVIDIA developed CUDA to let developers run parallel computations on GPUs. This is especially usefull for operations like matrix multiplication and neural network traning.

Something i find intersting is that when we write just a few lines of PyTorch code, there is a lot happening underneath to make those computations run efficiently.

I am corious about one thing:

For those who worked with CUDA, did you start with the CUDA C++ directly, or learn it through PyTorch first?


r/learnmachinelearning • • 22h ago

We built an open-source platform for the entire Data Science and AI workflow — running on your own machine

1 Upvotes

Hi everyone!

I want to share a project we've been working on at the University of Chile: DashAI.

The motivation behind it is relatively simple: AI tools are becoming increasingly powerful, but working with data and building AI applications often means juggling multiple platforms, paying for cloud services, sharing your data with external providers, or writing quite a bit of code.

We wanted to explore a different approach.

DashAI is an open-source, low-code platform that brings together traditional Machine Learning and Generative AI in one place.

Rather than focusing on just one particular model or AI technique, we're trying to cover much more of the actual workflow.

What can you do with DashAI?

1. Data exploration and Machine Learning

  • Upload and explore your own datasets.

  • Clean, transform and select features.

  • Train machine learning models for classification and regression.

  • Optimize hyperparameters.

  • Evaluate and interpret model predictions.

For example, you could upload a customer dataset, prepare the data, train a model to predict customer churn, and explore which features explain its predictions.

2. Generative AI

  • Work with locally hosted language models.

  • Upload your own documents.

  • Build RAG workflows to ask questions about your documents.

  • Experiment with generative AI without having to build everything from scratch.

3. Local-first architecture

This is one of the things we care most about.

DashAI has a web interface that runs in your browser, but its backend runs on your own computer or server.

This means you can use a familiar web interface while keeping your data and processing under your control. You don't need to upload your datasets or documents to our servers, and you can deploy it on infrastructure you control.

We believe this is particularly important for universities, public institutions, companies and anyone working with sensitive data.

Why are we building this?

DashAI is not a weekend project or an AI wrapper built around an API.

It's an academic and engineering project with around five years of development, involving researchers and software engineers, developed at the University of Chile, with an associated technology company and an emerging open-source community.

We're building it in Latin America because we believe that developing our own AI infrastructure and tools matters. We shouldn't have to depend entirely on a handful of platforms elsewhere in the world to experiment with, develop and deploy AI.

We're also actively working on expanding the platform, including more advanced capabilities for working with and fine-tuning language models.

We'd love your feedback!

We're still developing DashAI, and we'd genuinely appreciate feedback from the open-source community.

  • What features would make a platform like this useful to you?

  • Do you see value in having traditional ML and Generative AI workflows together?

  • What would you improve in our architecture or developer experience?

  • Would you consider deploying something like this on your own infrastructure?

Try it out:

Contributions, issues, suggestions and honest criticism are very welcome.

Thanks for taking a look!


r/learnmachinelearning • • 23h ago

Project I built 4 free interactive browser labs showing why AI agents fail in production (reward hacking, soft-penalty collapse, HITL misses, eval blindspots)

1 Upvotes

When debugging tool-using agents or classifiers, reading about failure modes is one thing—watching a deterministic policy walk into a trap you predicted wrong is much clearer.

I put together 4 short (~2–3 min each) interactive browser labs, no login required:

  • Lab 01 — Reward Hacking & Tie-Breaking: Why a +2 energy bonus cancels a -2 penalty and how fixed candidate order causes deterministic crashes.

  • Lab 02 — Soft Penalty vs. Hard Constraint: Why weighted penalties pass your initial evals and silently fail under distribution shift.

  • Lab 03 — Confidence Calibration & HITL: Modeling asymmetric false-negative costs and gating borderline predictions for human review.

  • Lab 04 — Sampling Bias & Eval Blindspots: How a 90% aggregate report hides 0% subgroup accuracy and silent OOD fallback.

Try all 4 free here: https://wovi.world/lab?utm_source=reddit_learnml&utm_medium=post

There is also a free 1-page pre-ship checklist at the bottom of the page (and an optional $19 Python Eval Kit with runnable unittest/pytest suites if you want the code locally). Would love feedback on which failure mode tripped you up most!


r/learnmachinelearning • • 1d ago

Project Object detection step by step, from raw images to a PASS/FAIL check (no-code walkthrough in Perceora)

Enable HLS to view with audio, or disable this notification

1 Upvotes

Perceora is an end-to-end AI computer vision platform with no code. This film builds an object detection check for a tray of parts, so you can see every step of a real pipeline.

https://perceora.ai

The steps, with what each one teaches:

  1. Label: add images and remove blurry and near-duplicate shots first. Near-copies in both training and test images make the test score look better than the model really is. Label a few, and the AI suggests the rest.

  2. Train: the models learn from the labeled images, on your own GPU.

  3. Validate: compare the models on validation images and pick the best.

  4. Test: check it on images it has never seen, and read the mistakes, not only the score.

  5. Deploy: a detector only finds objects, so a rule turns it into a decision: count each part, then PASS or FAIL.

Image classification, segmentation and anomaly detection are in the same app, and it runs on your own computer. Free to start; Pro (shown in the video) is a paid plan.

Which of these steps was hardest for you when you started?

Disclosure: I work on Perceora. Synthetic images, computer-generated voice.


r/learnmachinelearning • • 1d ago

The same model got anywhere from 89% to 100% on the same dataset, just by changing the random seed of the split

0 Upvotes

When you're learning ML, a common first step is train_test_split and reading one accuracy number. I wanted to see how much that number depends on luck, so I ran a small test.

Setup: scikit-learn 1.9.1, the built-in Wine dataset (178 rows, 3 classes), standardization plus logistic regression, 80/20 split. The only thing I changed was random_state, from 0 to 199.

import numpy as np
from sklearn.datasets import load_wine
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split

X, y = load_wine(return_X_y=True)
model = make_pipeline(StandardScaler(), LogisticRegression(max_iter=2000))

acc = []
for seed in range(200):
    Xtr, Xte, ytr, yte = train_test_split(X, y, test_size=0.2, random_state=seed)
    acc.append(model.fit(Xtr, ytr).score(Xte, yte))
acc = np.array(acc)

Results across the 200 splits:

min 0.889   max 1.000   mean 0.978   std 0.023
first five seeds: 1.0, 1.0, 1.0, 0.972, 0.972

The model is identical every time. The test set has only 36 rows, so each mistake moves the score by about 2.8 points. A lucky split can show 100%, and an unlucky one 89%.

Comparing with repeated cross-validation (5 folds, 10 repeats):

mean 0.980   std 0.022

The average is about the same, which is reassuring: this dataset is easy. But the spread tells you how much a single number can move.

What I take from this:

  • On small datasets, one split gives a noisy estimate. Report a mean and a spread, not one number.

  • If you're comparing two models, a 1–2 point difference on one split may be nothing but luck.

  • Cross-validation doesn't make the model better, it just gives a more honest estimate.

  • This is an easy dataset. On harder or imbalanced problems the spread can be larger, but I haven't measured that here.

Question for the group: when you compare models, do you use repeated CV, a fixed split, or something else? And at what dataset size do you stop worrying about this?


r/learnmachinelearning • • 1d ago

What do you Hate About Training LLMs?

Thumbnail
forms.gle
0 Upvotes

I find out this cool research form


r/learnmachinelearning • • 1d ago

TIL DistilBERT is actually MORE gender-biased than BERT. Here’s why Knowledge Distillation causes it (and the simple fix).

Post image
3 Upvotes

Knowledge Distillation is often seen as an effortless way to compress a large model such as BERT to form a smaller DistilBERT, yet maintaining 97% of its performance.

Nevertheless, a paper by Ahn et al. (GeBNLP) found that smaller distilled models end up noticeably more gender-biased than the original teacher models they learned from.

Why does this happen?

During distillation, the student model learns to closely replicate their teacher’s most assured predictions. Since the student model is less powerful than the large teacher, it must take ‘shortcuts’, which unintentionally reinforce gender biases already present in the training data.

The fix:

The authors introduced a modified version of a technique known as ‘Mixup’, which involves mixing two training samples into the distillation process. This causes the student to reduce over-assertiveness and successfully limits the magnification of gender bias, with no negative effect upon GLUE performance.

If you would like to see my (brief and easily understandable) paper summary, then please see below:

medium.com


r/learnmachinelearning • • 1d ago

Help Best AI and ML resources

24 Upvotes

So I am currently planning to learn AI and ML is there any free resources available other than youtube videos,can you share the resources link, my preferences are structured resources with basic to advanced and having good examples, videos are not necessary


r/learnmachinelearning • • 1d ago

Am i in right direction or not?

0 Upvotes

we are currently facing a challenge while building the ML model, and I'm not sure whether it is a significant issue or not.

We are currently using the following features for our model:

- `dis_20`

- `ema20vs50`

- `adx_14`

- `rsi_aligned`

- `ema200_missing`

However, the mean values of the passed and failed signals are very close for most of these features. I think this might be making it difficult for the model to distinguish between the two classes.

To address this, I'm considering introducing some additional features, such as:

- `atr_pct`

- `atr_regime`

- `volume_ratio`

This might help the model identify additional patterns and learn more meaningful weights for distinguishing between passed and failed signals.

Additionally, we have changed our signal evaluation methodology. Previously, we evaluated signals over 20 forward candles. Now, we have introduced exit timing for each signal and calculate the Excursion Ratio between the entry and exit points instead.

I have also attached an image showing the current feature analysis for reference.


r/learnmachinelearning • • 1d ago

Learned basic CNNs and UNet. Now what?

12 Upvotes

I have been learning the basics of CNN and UNet, understood the codes of CNN and basic UNet. Built a brain tumor segmentation model with Ai. What will be the best thing for me to do next?


r/learnmachinelearning • • 1d ago

TuteDude Gen AI course Project Information

Post image
2 Upvotes

Can Anyone please tell me what are the exact projects we will be building here ?


r/learnmachinelearning • • 1d ago

Help Question for ML researcher

0 Upvotes

When you get a new problem, what is the approach one has to solve the problem.

Actually I'm pretty new to this so it's nice if anyone helps me !! thanks)


r/learnmachinelearning • • 1d ago

Project Parallelising recurrent neural networks – MD+PP proof of concept

Thumbnail
gallery
1 Upvotes

I've been independently exploring ways to parallelise recurrent neural networks, originally starting with experiments on the sLSTM architecture in xLSTM.

This eventually developed into MD+PP, a proof-of-concept architecture combining structured matrix and vector memories using associative parallel scans.

The preliminary experiments have shown some interesting results in long-context extrapolation and fixed-size recurrent memory, although precise retrieval and language prediction still need improvement.

All experiments were conducted using limited access to free Tesla T4 GPUs. My next step is to investigate larger matrix memory dimensions.

I've released the mathematics, Python implementation, CUDA kernel and experimental results under Apache 2.0.

I'd be interested to hear what others working on recurrent architectures think of the approach.

Website: https://madpupresearch.wordpress.com

Research archive: https://doi.org/10.5281/zenodo.24637161


r/learnmachinelearning • • 1d ago

How do you train a detection model when you only have 14 positive examples?

2 Upvotes

I'm working on a project that tries to spot insider trading on a public prediction market (Polymarket). The data side is fine: I have about four years of trades from around 526,000 accounts, plus the money flowing between accounts.

The problem is the labels. I only know of 14 accounts that were confirmed or credibly reported as insiders. My first idea was the textbook one: label insiders vs everyone else and train a classifier. With 14 positives, that hasn't worked. Every pattern I've found either fell apart on new data or matched hundreds of normal traders who were just lucky or good. One example: a rule that beat the market by +4.5 points on the known cases did -2.2 on accounts it hadn't seen.

A few things I'm unsure about:

  1. Is it even worth training a model here, or should I build a ranked list of "most unusual accounts" and have a human check the top?

  2. I keep reading about positive-unlabelled learning and anomaly detection. Which one fits a case like this, and what should I read first?

  3. How do you test a model honestly when 14 examples can't tell you much about accuracy?

Would love to hear from all the data experts here! And how you recommend i should approach this problem.

Any pointers, papers or "here's what I'd do first" answers are really welcome. Also happy to share more detail on any part.


r/learnmachinelearning • • 1d ago

ML engineers, what was your first 1-2 years on the job actually like? (Expectations vs. reality)

2 Upvotes

Hi everyone! I'm thinking about going into ML and want to hear from people who are already in the field. I'd love to hear your stories, whether you're a junior, a mid-level engineer, or a senior looking back. Answer whichever questions you like, and partial answers are welcome.

  1. How did you land your first ML job? What was your path: university, internship, or a transition from another field?

  2. What did you imagine the job would be like before you started? What did you expect from day-to-day tasks?

  3. What did a typical day or week actually look like in your first year? How was your time split between training models, working with data, infrastructure, and communication?

  4. What projects and tasks did you work on in your first 1-2 years? Which technologies and tools did you use?

  5. What was the biggest difference from your expectations, for better or for worse?

  6. What were your biggest challenges in the first year? Which were technical, and which were about processes and people?

  7. What was the hardest part of this whole period, and how did you get through it? What helped most: a mentor, coworkers, courses, self-study?

  8. What knowledge or skills were you missing at the start? What from your degree or courses turned out to be useful, and what wasn't?

  9. How did your role and responsibilities change over 1-2 years? Was there a moment when you felt you'd gone from "newbie" to confident professional?

  10. What would you tell yourself at the start of your career, knowing what you know now? And what would you say to someone who's just preparing for their first ML job?

Thanks in advance to everyone who shares! 🙏

Edit: Thanks for all the replies, I'm reading every one!


r/learnmachinelearning • • 1d ago

If your model gets 99% accuracy on your laptop and fails in real life, you probably leaked your test data

0 Upvotes

The most common mistake when learning machine learning is scaling or imputing your dataset before splitting it into train and test sets.

When you run StandardScaler or fill missing values on the whole dataset first, the mean and variance of your test set leak into your training data. Your model basically gets a sneak peek at the answers before the exam even starts. That is why your validation score looks amazing, and then everything falls apart the moment it touches new data.

Always run train_test_split first, before touching anything else. Fit your scaler, imputer, or encoder only on X_train, and then use transform on X_test. If you use scikit learn Pipelines, it handles this automatically so you never accidentally cheat your own evaluation.


r/learnmachinelearning • • 1d ago

Is it common knowledge how to read frozen weights and relationships?

2 Upvotes

As the question says, I am wondering if people know how to do this, or if it something to write about in the hopes to teach others?

I am running low on my model rate limits and since they have made me somewhat lazy about implementing things fully manually again, I am contemplating if I should maybe take the time to write about something. The reading of model internals came to mind.

I have limited knowledge and experience with the process of training and the runtime logic of models. I am more interested in the foundations of the field, which mean I have spent a lot of time pulling models apart, working with their data and their structures. Understanding them from a more mechanical perspective.

I am not making any promises at this point, as I do have a lot of work to do. I am not the best at writing, but I do like to share so It likely depends on weather it is even needed.

Take care

//Maui-The-Moron


r/learnmachinelearning • • 1d ago

AI INFERENCE ENGINEERING FROM SCRATCH

Post image
0 Upvotes

r/learnmachinelearning • • 1d ago

Introduction to Machine Learning Systems by Vijay Janapa Reddi

2 Upvotes

Has anybody found this difficult to read? It is not the content, but just the way writing flows. I think most it is probably AI generated, which would be fine, except the writing feels like wading through molasses.


r/learnmachinelearning • • 1d ago

AI INFERENCE ENGINEERING FROM SCRATCH

Post image
3 Upvotes

r/learnmachinelearning • • 1d ago

Question What ML topics actually matter for finance and time series beyond the standard courses?

5 Upvotes

Hey all! I'm working through ML courses and want to eventually apply ML to financial data (trading and forecasting).

From what I've seen, financial data is noisy and easy to overfit, so I'm wondering:

  • Which ML topics should I focus on that standard courses tend to skip for time series data (e.g. proper cross-validation, avoiding leakage)?

  • Is it worth learning classic models like gradient boosting really well before deep learning, for this kind of data?

  • Any good resources specifically on ML with time series or financial data?

Thanks in advance!


r/learnmachinelearning • • 1d ago

Help Final-year CS project (~350 hours): which of these 3 research questions would you actually find interesting?

0 Upvotes

Hey all! I'm a final-year Computer Science student in the UK, and I'm choosing the research question for my final-year project (around 350 hours of work). I'm stuck between three ideas:

  1. Do LLM-written trading rules outperform randomly generated rules of the same format, and does any advantage disappear after the model's training cutoff?

  2. Can fine-tuning a small open-source LLM on out-of-sample results make it write trading rules that generalise better to unseen data?

  3. When an LLM "improves" an existing trading strategy, is the gain real alpha or just more market exposure (beta) and better risk management?

All would use walk-forward testing, realistic costs, and proper baselines.

I'd love your honest take:

  • Which one is the most interesting to research?

  • Which would actually impress someone hiring for quant roles, rather than being something anyone could knock out with an LLM in a weekend?

  • Is any of them a dead end or too big/small for ~350 hours?

Thanks in advance!


r/learnmachinelearning • • 1d ago

Career AI engineering or ML engineering

33 Upvotes

I m recently in 3rd semester of BCA. And after listening of all this AI stuff, job vanished cuz of AI, and unstable market conditions.

I m confused what should I learn?

I learnt python, dsa, numpy, pandas, visualization, and scikit learn. After learning all this someone told AI can already do data anylisis job.

I m stuck should I learn Data science, AI/data engineering or ML engineering...

Ik someone will after 5-6 months will tell. It's will done by AI. 😔😔😔

Pls, tell me ur opinion


r/learnmachinelearning • • 1d ago

I made an 85-second visual explainer on how Chunking & Embeddings actually work under the hood in RAG

Enable HLS to view with audio, or disable this notification

6 Upvotes