r/learnmachinelearning • • 10h ago

Why neural network confidence isn’t the same as uncertainty

0 Upvotes

A neural network can be 99% confident in a prediction and still be completely wrong.

I’m an AI researcher who makes short educational videos on machine learning concepts and research. In this video, I explain the difference between confidence and uncertainty:

My Insta
My TikTok

I post similar educational content on Instagram and TikTok. Hopefully some of you learning ML find it useful! I’d love to hear any feedback or suggestions for future topics.


r/learnmachinelearning • • 10h ago

Project WebNet v2 Update: RFC 9309 Open-Web Crawler (200 Seeds + SSRF Guards), Locked 16-Doc Benchmark, Byte-Level BPE BPB Lab, Strict-Citation FTS5 RAG + LoRA, and Gemini/Grok Bridges

Thumbnail
gallery
0 Upvotes

Hi everyone! I just shipped a major update to WebNet v2 — an open-source, 100% real-telemetry PyTorch continual-learning Transformer and applied AI workbench running locally on CPU with zero simulated metrics.

GitHub Repository: https://github.com/Rishisharma029/live-internet-neural-net

The attached visuals are generated directly from live telemetry (Step 76,497 · ~99.78M tokens seen · 6,306 archived docs):

  1. Architecture & Applied AI Pipeline Flowchart (8 curated feeds + 200 seeds -> RFC 9309 & SSRF -> SQLite FTS5 -> InternetNetV2 -> 16-Doc Benchmark + BPE Lab + LoRA/RAG + Gemini/Grok)
  2. Live Training & Generalization Loss Trajectory (EMA Loss: 1.205, Val Loss: 1.602, Bench Loss: 1.699)
  3. Domain Mastery Breakdown (0–100% Scale) across Science & AI, Encyclopedia, Code & Tech, and Literature

What's New & Implemented

  • Hardened Open-Web Crawler (WebNetBot/2.0, 200 Seed URLs):

    • Expanded to 200 curated public URLs across AI/ML, systems, docs, security, physics/math, biology, philosophy, and journalism + live sitemap & Hacker News discovery.
    • Full RFC 9309 robots.txt compliance, >=12s per-domain rate limiting, 429 exponential backoff / 403 pauses, SSRF DNS/IP & redirect re-validation, XXE & .xml.gz gzip-bomb protection, and streaming 1.5 MB page caps.
  • Locked Unseen Benchmark & Regression Guardrails (benchmark_eval.py):

    • Fixed 16 unseen passages (4 per domain) excluded by content hashes from both WebCorpus and LoRA training. Tracks per-domain loss, BPC, invariant Bits-Per-Byte (BPB), perplexity, accuracy, and automatic regression alerts (Fixed benchmark healthy, 50.0% next-char accuracy, 2.438 BPB).
  • Experimental Byte-Level BPE vs. Char Transformer (bpe_experiment.py):

    • Parameter-matched 2,048-vocab Byte-Level BPE Transformer (ExperimentalBPENet) compared fairly against the 98-char InternetNetV2 (96d · 4h · 10L · ctx768, 1.12M params) using vocabulary-invariant BPB.
  • Strict-Evidence SQLite FTS5 RAG, Attribution & Source Removal (archive_db.py, lora_engine.py):

    • Pure-PyTorch LoRALinear on SmolLM2-135M-Instruct (no peft dependency) paired with BM25 + TF-IDF hybrid search over 6,306+ documents (16.3M+ chars). Answers strictly cite URLs, publication dates, licenses, and content hashes—and explicitly abstain when evidence is insufficient.
    • Added full source removal & blocked_sources tombstone APIs (/api/archive/remove) that purge unwanted URLs/domains from both SQLite and live training batches.
  • Google Gemini & xAI Grok Neural Bridges (gemini_bridge.py, grok_trainer.py):

    • Native function-calling tools wiring Gemini (8 tools) and Grok directly into InternetNetV2 inference, anomaly scoring, 32-bit lossless arithmetic compression, live crawling, and autonomous weak-domain curriculum boosting.
  • Real-Time Interpretability Observatory (http://localhost:8000):

    • Live WebSocket streaming (23-column network graph, 40 attention heads, Logit Lens depth collapse, 2D SVD embedding trajectory, Prompt Lab, and Ghost Editor).

Feedback, PRs, and local CPU benchmark comparisons are very welcome!


r/learnmachinelearning • • 10h ago

Career How do you decide your next career move in tech, and what do you rely on to make it?

0 Upvotes

I've worked in tech for a few years now, and I've never found a good tool to help manage my career. Most of my decisions come from piecing things together myself: reading threads on Reddit and LinkedIn, asking people I trust (who know a little), and sometimes going with gut feel.

The questions I keep coming back to are:

  • Am I on track for where I want to be in a few years?
  • Where could I pivot if my role changes or shrinks (especially with AI nowadays)?
  • Which of my skills are going stale, and which new ones are worth learning?
  • When I find a gap, where are the best resources to close it?
  • How do I make my CV and interview prep match what employers are asking for right now?

I haven't found one place that helps with all of these, so I end up stitching together several sources, and I'm never sure I'm seeing the full picture.

I'm curious how others here handle it:

  • When you last made a big career decision (new role, pivot, learning a new skill), what did you base it on?
  • Is there a tool, habit or person you rely on that works well? Or do you use that because nothing better exists?

r/learnmachinelearning • • 2h ago

Help Why use any model or algorithm other than LLM/ChatGPT/Claude?

0 Upvotes

I asked LLM and it cannot answer this question. Do you have any insights that justifies learning about or using classical/pre-foundational model ML for modern applications?


r/learnmachinelearning • • 11h ago

Apple Data Science(ICT 3/4) Interview Expectation

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 1d ago

Discussion Seven models did the math. Did the patient actually confirm the answer?

25 Upvotes

Imagine reading this in a pre-op note: “Patient confirms 63 units of alcohol a week.” Now look at the conversation it came from. The patient says he drinks socially on weekends. His wife says he finishes a 750 mL bottle of 12% wine every night. He says nothing after that.

A creator gave seven models this written scenario as part of a 20-case test. All seven calculated 63 UK units a week from the wife’s account. LingSante-3.1-flash kept the two accounts separate in its note. GLM-5.3-Flash took the silence as agreement. The scorecard gives those answers 5/5 and 2/5 respectively.

What bothers me is how little has to change for a note to become misleading. Swap “his wife reports” for “the patient confirms” and the number stays exactly right. If I were grading a model that summarizes conversations, I’d ask a reader to underline the words where the patient confirmed the number. In this case there’s nothing to underline.


r/learnmachinelearning • • 13h ago

Project I made a free "Advent of AI": one ML problem a day until Dec 24 (today: steer a tiny neural network with a "potion")

Post image
0 Upvotes

Hi everyone,

A few weeks ago I posted here about ioai.artix.tech, the free platform I built to train the French team for the IOAI (International Olympiad in AI) and used by almost 1000 people from around 100+ countries. Thanks for the feedback, it helped a lot.

For December I made an advent calendar on it: every day until December 24, you get a new ML puzzle at 18:00 Paris time.

The first two days, to give you an idea:

- Day 1, "Hollow toys". An elf sorts toys with one rule: under 500 g, the toy is hollow. You get a logbook of 400 toys that were cut open. Part 1: how many does his rule get wrong? Part 2: sort tonight's 300 unopened toys with at least 95 % accuracy.

- Day 2, "Elf potion". You are given the weights of a small neural network (8 inputs, two hidden layers of 16, 5 outputs) that picks a gift from a letter, and a lab notebook of 41 trials showing how each potion ingredient shifts the activations of the second layer. You have to prepare a potion, within a budget of spoons, that makes the network choose the gift you want for your letter.

The problems are wrapped in a small story: Santa handed his whole workshop over to AI, nothing has worked since December 1, and each solved day gives you a clue about who is sabotaging it. You vote for the culprit, revealed on the 25th :)

There are also two lighter tracks, for people who do not code (playing with a live model) or who want to build things with a coding assistant, but the ML track is the one I would most like your opinion on!

You can participate here: https://ioai.artix.tech/advent?src=reddit-lml

Feedback welcome, especially on difficulty and on whether the statements are clear.


r/learnmachinelearning • • 14h ago

Optimization Methods for Large-Scale Machine Learning

Thumbnail arxiv.org
1 Upvotes

r/learnmachinelearning • • 15h ago

What real-world problems do you think AI/ML could help solve?

1 Upvotes

Hi everyone! I'm a BCA student currently looking for a topic for my final-year project.

I'm interested in AI/ML and Computer Vision, and I'd like to work on something that solves an actual real-world problem rather than building another common student project.

What are some real-world problems you've come across that you think could benefit from AI/ML or Computer Vision?

I'd appreciate any suggestions, ideas, or research areas worth exploring. Thanks!


r/learnmachinelearning • • 1d ago

Project Bias-correcting GFS over Southeast Asia with a small U-Net: -44% temperature RMSE vs ERA5, but only ~7-15% vs real weather stations (a per-station bias baseline beat it)

Thumbnail
gallery
6 Upvotes

TL;DR: I trained a small neural network to fix systematic errors in a weather forecast. It looked great when scored against a reanalysis dataset (ERA5), but much less impressive against real weather stations, and a very simple baseline beat it. The main lesson was how much the choice of "ground truth" matters.

What I built

A small Residual U-Net (1.77M parameters) that corrects NOAA GFS 2 m temperature and 10 m wind speed over Southeast Asia (0–30°N, 90–130°E, 0.5° grid). I trained it on a 4 GB laptop GPU (RTX 3050). It is part of a larger hobby project: a 3D web globe of live natural hazards and weather forecasts, but this post is about the ML and the evaluation.

Setup

• Inputs: GFS fields + elevation + land-sea mask + local neighborhood stats (18 channels) • Target: ERA5 minus GFS (the model predicts the forecast error), 00Z cycle, lead times 12–120 h • Time-based split with 5-day gaps to avoid leakage: train 2022–2024 (273 init dates), validation 2025-H1 (44), test 2025-07 to 2026-11 (125). A 4-day stride between init dates. • Baselines: raw GFS, per-grid/month/lead climatological bias, LightGBM. ECMWF IFS and AIFS (an ML model) as references.

Result 1: against ERA5 (the training target)

• 2 m temperature RMSE: 1.44 → 0.80 °C (-44%) • 10 m wind RMSE: 1.64 → about 1.2 m/s (-26%, with a guard that stops the model from damping strong winds)

Looked great.

Result 2: against real weather stations

I then checked against NOAA GHCNh station observations (406 temperature stations, 369 wind stations), using a paired block bootstrap over whole forecast days (2,000 replicates) because stations on the same day are correlated.

• The model is closer to the observations than raw GFS, but the improvement shrinks to roughly 7–15% depending on variable and region (temperature about 14–15%, wind across the whole box 12%, wind at 7 Vietnamese airports 7%) • Statistically tied with ECMWF IFS across the whole region, and behind AIFS • A simple baseline, subtracting each station's average GFS error from 2022–2024, beat my U-Net on both variables

Why: the U-Net inherited the systematic offsets between ERA5 and surface stations. ERA5 is a reanalysis, not ground truth, and it also assimilates those stations, so it is not independent of them.

Other findings

• Verification caught a real problem: at hours the model never saw in training (06Z/18Z), it made Vietnam afternoon wind worse (+0.135 m/s, 95% CI [0.055, 0.214]). I added a guard that switches the correction off at those hours. • An exploratory LightGBM trained directly on station observations, evaluated on 20% of stations held out completely, did better on unseen stations (temperature 1.43 °C, wind 1.82 m/s). That suggests the ERA5 target was the bottleneck, not the architecture. (Exploratory only, not integrated.)

Limitations

• Test valid times are only 07:00 and 19:00 local time, so daily max/min temperature is not covered • Vietnam wind verification rests on only 7 airports • Trained on GFS v16-era data, so it may drift after model upgrades • Not an official forecast and not for safety decisions

Questions for you

  1. Are there better ways to handle the mismatch between a gridded reanalysis target and point observations?
  2. Any suggestions for spatial cross-validation with ~400 stations?
  3. Would you expect a CNN trained directly on station data to beat the LightGBM here?

Code, model card and full report (MIT): https://github.com/swagduck/ML_natural

Built with an AI coding agent under my direction; I wrote the specs, designed the evaluation and checked the results myself.


r/learnmachinelearning • • 1d ago

learning to make models from scratch, anything else to try and learn?

30 Upvotes

As the title says, I've been learning ML by making the code for the models myself, no modules or existing code.

I have successfully created my own modules storing the code for multiple feature linear and logistic regression. I have also managed to get forward propagation working for neural nets but not back propagation.

What should I learn from here?


r/learnmachinelearning • • 21h ago

What should you learn after getting comfortable with training machine learning models?

2 Upvotes

hey everyone, sharing this because I think it's relevant to people learning machine learning and trying to move beyond basic model training.

most ML learning paths focus heavily on algorithms, model selection, feature engineering and improving accuracy.

but knowing how to deploy and maintain a model is another important skill.

here's a simplified view of the process:

1. Train your model

build and train a model using a suitable dataset.

2. Validate it

check whether it generalizes to unseen data instead of just performing well on training data.

3. Deploy it

make the model available through an application or service.

4. Monitor it

track predictions, errors and performance once real users start interacting with it.

5. Detect drift

check whether changes in incoming data affect the model's reliability.

6. Maintain it

reproduce experiments, investigate issues and update the model when needed.

I came across a Packt Production ML Engineering workshop on December 5 that covers this complete process.

it includes practical work with scikit-learn, XGBoost, LightGBM, CatBoost and Streamlit.

could be useful for anyone comfortable with basic Python and ML who wants to understand how production machine learning works.

Full workshop details and agenda


r/learnmachinelearning • • 17h ago

Contribute your voice to speech recognition for Indian food.

Post image
1 Upvotes

r/learnmachinelearning • • 19h ago

I am recently learning RNNs and LSTM, i am just test the copy problem after some blanks but the LSTM perform worse than RNN with a Gap (G) of 20

1 Upvotes

r/learnmachinelearning • • 19h ago

Signal Processing Question

1 Upvotes

Hi everyone.

I'm a junior Ai researcher. I'm trying to predict a particular physiological marker based on ear signals. The issue is that I have very few patients for this experiment. High physiological marker value class vs low. When i try to apply an ml mdoel or deep learnign model, it tends to learn the patient signatures rather than the marker-ear sginal relationship. What do i do? ANY NOVEL SUGGESTIONS? (Other than: Get more data)


r/learnmachinelearning • • 1d ago

Discussion Best Machine Learning playlists or courses?

28 Upvotes

Hey everyone! I'm planning to learn Machine Learning and looking for the best learning resources.

I'm open to free resources or low-cost paid courses.

Looking for something that explains concepts clearly and includes practical, hands-on projects.

What would you recommend based on your experience?


r/learnmachinelearning • • 21h ago

Tutorial Generative AI

Thumbnail gallery
0 Upvotes

r/learnmachinelearning • • 21h ago

USAAIO Q

1 Upvotes

Hiya,

I am a high school student preparing for the USAAIO (USA AI Olympiad). I am currently polishing my skills in information theory and pondering whether complex contour methods are commonly used, or if I should just continue studying standard entropy and KL divergence.

thanks!!!


r/learnmachinelearning • • 14h ago

Question Entry-level AI engineer looking for a fully remote, permanent role. What actually worked for you?

0 Upvotes

Hi everyone,

I'm based in Bangladesh and I'm looking for a fully remote, permanent, entry-level AI Engineer position. I'd like to land something soon, so I'm hoping to learn from people who have been through this.

My background:

- Built RAG/CAG pipelines and LLM-powered tools

- AI automation with n8n workflows

- Prompt engineering and LLM research (I've published papers)

- Projects and write-ups on GitHub

What I'd love advice on:

  1. Which job boards, communities or newsletters have genuinely worked for remote AI roles?
  2. How do entry-level candidates stand out when applying globally?
  3. What would you want to see in a portfolio before shortlisting someone?
  4. Any mistakes you made in your own search that I can avoid?

Happy to share my GitHub in the comments or by DM. Thanks for reading, and any tip is appreciated.


r/learnmachinelearning • • 1d ago

Request Hackers exploit critical WordPress WP Rocket flaw to breach sites

2 Upvotes

A critical vulnerability in WP Rocket, one of the most widely installed WordPress caching plugins, was actively exploited before most site operators had patched. WP Rocket has over 3 million active installs. Attackers used the flaw to gain unauthorized access to site environments and the data those environments held.

The uncomfortable part is not the plugin flaw itself. Plugin vulnerabilities ship constantly across every ecosystem. The uncomfortable part is what happens after: sensitive fields — user records, credentials, payment-adjacent data — are sitting in plaintext wherever that plugin can reach. Patch latency on a plugin with 3 million installs is measured in days to weeks, not hours. That window is the exposure.

Perimeter and authentication controls did not stop this. The plugin had legitimate access. Once the plugin was compromised, that access became the attacker's access. There was no second layer checking where the data was allowed to go or logging what actually moved.

This is not unique to WordPress or WP Rocket. Any system where sensitive fields travel or rest in plaintext through third-party code layers has this shape of risk.

For those running production systems with real PII exposure: what does your actual data-layer protection look like before data hits a plugin, cache, or third-party integration? Not the perimeter — the field level. Curious what approaches have held up in practice.


r/learnmachinelearning • • 1d ago

Discussion Machine Learning Overview

38 Upvotes