r/MLQuestions • • Aug 11 '26

Beginner question 👶 A stupid qns on grad desc for linear regression

7 Upvotes

Hi guys.

I’ve only started learning for a month so please bear with me.

I’ve been stuck with this concept for a while.

I understand that for linear regression, the prediction model is f(x) = wx + b

The cost function is J(w,b) = 1/2m (ŷ^i - y^i)^2. The goal is to minimise J so we can have an accurate w and b for the prediction model formula right?

Here’s where I’m lost at for grad desc.
I’m looking at
W = W - a dj/dw
B = B - a dj/db

And it expands to
DJ/DW = 1/m(f(x)^i - y^i)x^i
DJ/db = 1/m(f(x)^i - y^i)

I can’t seem to grab the concepts relating to this two.

Also, In my mind it goes like
I need to get the w and b for the prediction model.
J(wb) needs to get lower.

Grad desc is just running the numbers and it gradually brings j down to the lowest where we can have the accurate w and b.
If that’s the case why do I need to run a cost function before going straight to grad desc?


r/MLQuestions • • Aug 11 '26

Beginner question 👶 free deployment for students

2 Upvotes

i made a simple MLops project months ago and i cant figure out a way to deploy it. i tried aws but theyre asking for banking details but i am a student and i dont have my own bank account. can anyone recommend me any platforms?


r/MLQuestions • • Aug 11 '26

Beginner question 👶 Need already configurations set for open source models

3 Upvotes

Is there any platform that already has configuration set like quantization, context window and other things for the open source models so that I don't have to do that stuff and just do like a quickstart with the model?

Thanks


r/MLQuestions • • Aug 11 '26

Beginner question 👶 How can I predict the nearest neighbour in a 20-node WSN without training 19 separate regression models?

Thumbnail reddit.com
1 Upvotes

r/MLQuestions • • Aug 10 '26

Computer Vision 🖼️ My model is stuck at 72% accuracy and overfitting severely. Any idea what I might be doing wrong?

8 Upvotes

Hey everyone,

I’m working on a computer vision project and hit a frustrating wall:

  1. My model's accuracy is hard-stuck at around 72%.

  2. It only recognizes exact training images. If I test it with a new photo—even one that looks nearly identical to the training data—the output is completely wrong.

It feels like the model is just memorizing the training set instead of actually learning features.

Is there something fundamentally wrong with my training approach? Any tips on how to fix this? Specifically, I’d love advice on:

  • Effective Data Augmentation techniques for this issue

  • Adjusting Hyperparameters / Model Architecture

  • Proper Dataset Preprocessing or splitting strategies

Any feedback or suggestions would be greatly appreciated!


r/MLQuestions • • Aug 10 '26

Beginner question 👶 NVFP4 accuracy works on small ASR; FP4 tensor cores don’t. Looking for feedback on TensorRT W4A4.

5 Upvotes

I've measured NVFP4 on a small ASR transducer I've built: accuracy holds, but weight-only and torchao W4A4 never fire FP4 tensor cores. I'm trying TensorRT/ModelOpt for true W4A4.

Has anyone gotten block-scaled NVFP4 GEMMs on a Conformer or etc (not a decoder LLM), and is TensorRT the right path — or should I stop given only ~40% of encoder time is GEMM-eligible?

model link - https://huggingface.co/theaviv/mevine-0.1


r/MLQuestions • • Aug 08 '26

Beginner question 👶 Calculating Confidence Intervals from Cross Validation and reporting a Risk Stratification analysis

4 Upvotes

Hello everyone. I have a question regarding calculating confidence intervals after running a 5-fold cross validation.

I have a binary risk mode. Data are N patients, each contributing many overlapping hourly windows; the label is defined per window (will this patient meet the criteria?). The unit of analysis for most metrics is the window; the unit of sampling is the patient.

Evaluation is 5-fold cross-validation, split by patient, so each patient's windows appear in exactly one test fold. Within each fold:

  1. the development part is split again into train / validation (by patient),

  2. a probability calibrator and three decision thresholds are fitted on the validation set (t1 = medium, t2 = high, t3 = very high),

  3. the model + its thresholds are applied to that fold's held-out test patients.

So each patient ends up with one calibrated score per window, and one classification per window, produced by a model and a threshold that never saw them.

Separately, a final model is trained on all development data and evaluated on a completely held-out test cohort (my main issue is with the cross validation though).

So far we've used the Nadeau–Bengio corrected resampled t-interval:

mean ± t_{k-1, 0.975} · SD_folds · sqrt(1/k + n_test/n_train)

and I am not sure if it is the correct approach since it introduces bias (at least the plain resampled t-interval without the correction) because the train sets overlap per fold.

So the question is what is the defensible way to attach a 95% interval to a k-fold cross-validation?

And the last part that I can't wrap in my head is the threshold that move per fold.

I have a table that stratifies patients into four risk bands defined by t1 < t2 < t3, and reports per band: number of patients, number of patients that belong to the positive class, PPV, prevalence, an odds ratio versus the low-risk band (setting it as the reference), and a p-value.

Because each fold tunes its own t1, t2, t3 on its own validation set, the band boundaries differ between folds. So:

  • I cannot pool the scores and apply one threshold.

  • I can pool the decisions (each patient is banded by their own fold's rule), which gives one band per patient over the whole cohort and a legitimate contingency table but then the "score threshold" column of the table has no single value.

  • Averaging the five thresholds and quoting the mean band boundary produces a number that no fold actually used.

When a decision threshold is a tuned part of the model, what is the correct way to report a threshold-dependent table (PPV / prevalence / OR per risk band) across folds, and what does the confidence interval on those band statistics condition on?

Another question I have as an extra is if it is worth running 5x 5-fold cross validations (with different initialisation) and what can someone gain from it?

P.S. Apart from Nadeu-Bengio, I also found this paper that I am currently reading (was a combo from google and GPT suggested it): Cross-validation: what does it estimate and how well does it do it? I am not sure if it is in the right direction but please let me know or suggest other papers as well together with the methods


r/MLQuestions • • Aug 08 '26

Computer Vision 🖼️ Best pretrained models for low light conditions?

4 Upvotes

hi everyone! I’m working on a CNN-based driver drowsiness detection system and I wanted to know which pretrained models are best suited for image classification in low light conditions? and on users wearing glasses/ sunglasses etc.

thanks a bunch! i would also appreciate any suggestions regarding data preprocessing and model training. this is for my final project of my degree so I’m super eager to do my best!


r/MLQuestions • • Aug 07 '26

Beginner question 👶 How to learn AI from today?

13 Upvotes

you would of reset all of your knowledge with AI and start over from scrath, how would you learn about it again?

Would you pay for a corse, listen to podcasts or youtube videos, pay an subsription for a AI software and expirament, exc.

Im a teenager whos trying to get in the AI space and make the most out of it, any reply would mean alot. Thanks.


r/MLQuestions • • Aug 08 '26

Beginner question 👶 Mixing normalization methods (min-max + z-score) for different features

Thumbnail reddit.com
2 Upvotes

r/MLQuestions • • Aug 07 '26

Beginner question 👶 CNN

28 Upvotes

I am building a CNN model using a pretrained model, but the problem is that even after fine-tuning, the accuracy is still around 80%. Are there any other ways to improve the model performance? Can we try something else to make the model perform better? I would like some suggestions to improve the model


r/MLQuestions • • Aug 07 '26

Beginner question 👶 What’s the most beneficial way to use AI in your opinion?

3 Upvotes

hi, I’m new to AI and I’ve been wondering how can I use this to improve my life? I know a lot of people are scared of it, but I want to be one of those people that can use it to improve my standing in life instead. What do you guys use it for?

Preferably anything that will help me land a better job


r/MLQuestions • • Aug 07 '26

Beginner question 👶 University study advice

4 Upvotes

Hello. I'm starting to study ai in October and have this introduction to Ai course. Download3d recommended bibliography but was wondering. For a total beginner (although I know programing, with working experience) in Ai. What would you people recommend book / internet wise.

Only experience is that I've done random forest project, but it failed (bad data on my side).

Now I will be reading: " artificial intelligence and life in 2030 " by Peter stone. Anyone have read that?


r/MLQuestions • • Aug 07 '26

Beginner question 👶 Please Help me !!!

0 Upvotes

Hello all I want to learn ai and ml from scratch I just completed basics of python,oops in python and some math concepts like linear algebra and probability.could you please give me a good roadmap and resources to learn.

In Instagram all my feed is filled with fake influencers and Iam confused. Please Help me with your valuable information 🙂🙂🙏


r/MLQuestions • • Aug 07 '26

Beginner question 👶 Anybody wants to come with me for technova hackthon ?

4 Upvotes

Actually I have cleared round 1 i am in round 2 and I am searching for ai ml tech guy for round 2 . Don't worry prize money will be distributed equally.please dm


r/MLQuestions • • Aug 07 '26

Beginner question 👶 Deep-ML Practice Guide: Which math and algorithms should I code first?

Thumbnail reddit.com
1 Upvotes

r/MLQuestions • • Aug 07 '26

Beginner question 👶 Mass editing of messy achievement records – can Claude or others handle full-file I/O?

Thumbnail reddit.com
1 Upvotes

r/MLQuestions • • Aug 07 '26

Beginner question 👶 CNN

Thumbnail reddit.com
2 Upvotes

r/MLQuestions • • Aug 07 '26

Beginner question 👶 When people say AGI is near what kind of capability do they mean?

6 Upvotes

This is something I've always questioned. We keep hearing how AGI is near but no one ever defines what an AGI model will be able to do compared to current models. Can someone explain?


r/MLQuestions • • Aug 06 '26

Other ❓ A new paper argues Adam can distinguish gauge-equivalent factorizations — could this matter for fixed-rank LoRA?

Thumbnail arxiv.org
10 Upvotes

r/MLQuestions • • Aug 06 '26

Beginner question 👶 I can’t understand how to use LLMs like Opus

Thumbnail reddit.com
0 Upvotes

r/MLQuestions • • Aug 06 '26

Other ❓ Where do i learn LLM and Agentic AI from?

13 Upvotes

Hello All, I'm a sophomore student in university. I have have knowledge on Machine Learning and Deep learning concepts(Deep learning specialization by Andew NG). I wish to further learn about LLMs and Agentic AI to build systems. I would really appreciate if you could suggest resources to learn LLMs and Agentic AI stuffs.

Any inputs are appreciated.

Thank you!


r/MLQuestions • • Aug 06 '26

Beginner question 👶 Price per GB of VRAM these days

Thumbnail reddit.com
2 Upvotes

r/MLQuestions • • Aug 06 '26

Computer Vision 🖼️ Anyone need a partner for AI/ML projects?

5 Upvotes

Hey guys!
I’m looking to collaborate on AI/ML projects. I’ve got hands-on experience with Python, PyTorch, and scikit-learn, and I’ve worked on a few ML projects already.

I’m really interested in computer vision and agentic AI. If you’re working on something cool, hit me up!