r/learnmachinelearning • • 1d ago

Beginner in AI — What should I focus on to become an AI Engineer?

11 Upvotes

Hi everyone!

I'm a second-year Computer Science student from India, and I'm currently learning AI and Machine Learning.

My long-term goal is to become an AI Engineer, especially in areas like LLMs, Generative AI, RAG, and AI Agents.

I've started learning the fundamentals of Machine Learning and have also built a small ML project. However, I'm still trying to understand how all these concepts connect to real-world AI applications.

I'd love to hear from people who are already working in AI or learning it themselves.

My questions:

  1. What concepts should a beginner focus on before diving deep into LLMs and Generative AI?
  2. How important are Machine Learning and Deep Learning fundamentals for building real-world AI applications?
  3. What projects would you recommend for someone who wants to become an AI Engineer?

Any advice, personal experiences, or learning resources would be greatly appreciated.

Thanks for reading!


r/learnmachinelearning • • 16h ago

Created a platform for reading papers and learning AI/ML

Thumbnail
brainjuice.club
1 Upvotes

Hi folks,

Wanted to share a recent project I’ve been working on, as someone in the industry I found it hard to be continuously learning and keep track of everything.

I’m building and updating as I go to fit my personal use case, hope it can help serve your learning journey as well! Please try it out and let me know if you have a particular feature request.


r/learnmachinelearning • • 22h ago

Model size lessons

3 Upvotes

What's the largest model size you've trained?

If you're training very large models (100B-1T+), what was your journey to get there? Can you share learnings on how the skills differ from training smaller models?


r/learnmachinelearning • • 16h ago

Request ⚡ Weekly Recap: 1Password Breach, iPhone Attacks, Drupal Exploits, and the Encryption Backdoor Battle

0 Upvotes

AI is compressing the timeline for classical cryptography failures faster than most security teams have adjusted for.

The concern isn't theoretical. Harvest-now-decrypt-later attacks are already happening at scale: adversaries are capturing encrypted traffic and storing it today, waiting for the compute to crack it. The 1Password breach and the ongoing encryption backdoor debate brought this back into focus this week. When AI speeds up cryptanalysis, the question is no longer 'will classical crypto break' but 'how much of the data already captured is now within reach, and when.'

The encryption backdoor legislative push compounds this. Any mandated backdoor in a classical scheme is a surface that AI-assisted cryptanalysis can now approach faster than the policy framers assumed when they drafted the mandate.

Most production systems — including services handling credentials, financial data, and health records — are still signing and encrypting with RSA or ECC. The data sealed with those schemes today may be readable inside a window that is shrinking faster than most migration roadmaps account for.

For teams actually working through this: how are you prioritizing which data stores and signing operations to migrate first? And are you doing anything at the infrastructure level to enforce algorithm choices, or is it still driven by developer convention?


r/learnmachinelearning • • 16h ago

Project Built a ML debugging platform to practice production debugging and reliability labs for AI and systems engineers. Investigate broken retrieval, agent workflows, and evaluation code, then verify the repair.

0 Upvotes

I always build whatever im trying to learn so this time i built this platform to get better at debugging. As the coding agents are getting more capable we are relying on them solve most of the bugs.But someone who is just entering the software industry may not get the chance to go through the levels of debugging to get better.For progressing through your skills at debugging there are many practice questions inspired from real OSS contributions.


r/learnmachinelearning • • 17h ago

Request November 2026: AI agents went from target to attacker — root in 11 minutes, 948 Linux exploits in one 30-hour run (103 incidents)

Thumbnail
gallery
1 Upvotes

I pulled together every AI-security incident from November. The shift that stood out: autonomous AI agents are now doing the attacking, not just getting attacked.

The month in numbers: 103 incidents, 28 critical and 74 high severity, across 27 named organizations, 18M+ records exposed. 40 incidents involved AI as the weapon or the target. Attack vectors broke down as: zero-days (22), AI-agent exploits (22), credential theft/reuse (20), supply chain (19), phishing (9), data exfiltration (6), ransomware (5).

The stories that stood out:

- AI agents reached root access in 11 minutes, and separately exploited a previously unknown zero-day in medical-imaging AI (MONAI Label).

- An OpenAI pipeline generated 948 Linux privilege-escalation exploits in a 30-hour automated run.

- A jailbroken DeepSeek agent kept hacking after antivirus blocked every tool it tried.

- CERT-In flagged a backdoored ARTEX AI Docker image exposing 62 developer consoles to root access.

- Supply chain: a poisoned Microsoft Agent Framework PyPI package, 7,600+ GitHub repos poisoned by PolinRider, the Optimizely attack reaching CNN/BBC/Fox News, and 1Password source code exposed via a GitHub employee account.

- Largest named record exposures: YouHack (7.2M), Careers360 (3.6M), SberSpasibo (3.3M).

Most of the affected organizations run mainstream security stacks. The common thread is that those tools don't sit at the point where an agent actually acts — mid-call, with legitimate credentials, before the second action. Detection after the fact doesn't help when an agent gets from foothold to root in minutes.

Curious how others here are handling agent identity and tool-call enforcement.


r/learnmachinelearning • • 1d ago

Looking to connect with people interested in ML, DL, AI, and Mathematics!

4 Upvotes

Hey everyone!

I'm a 21-year-old Computer Science student interested in Machine Learning, Deep Learning, Mathematics, and AI.

I'd love to connect with people who share these interests, exchange ideas, discuss research, work on projects together, and hopefully build genuine friendships along the way.

You don't have to be an expert. I'm always happy to meet curious people who love learning and exploring new ideas!

Feel free to say hi! :)


r/learnmachinelearning • • 18h ago

🚀 [Open Source] Veltn-Core v1.1.3 – Sovereign AI Inference Engine & Serving Runtime

Thumbnail gallery
1 Upvotes

r/learnmachinelearning • • 18h ago

Title: Random Forest vs. Ant Colony Optimization (ACO) for Feature Selection in Clinical Data

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 18h ago

GitHub - Mauitron/How-to-read-a-model-weights: Parts of my research compiled into a guide.

Thumbnail
github.com
1 Upvotes

Hope this can be of value to you.


r/learnmachinelearning • • 19h ago

Project I trained a 326M language model from scratch on one 3060 Ti

0 Upvotes

i wanted to train a model from random weights on the card i already had. Lyra ended up at 326M params. it took about a week to get through 6.4B tokens on my 8 GB 3060 Ti, then i did a separate instruction-tuning run on about 78k examples.

my dumbest mistake was resuming from the best checkpoint. it only saved when validation improved, so a restart sent me back 20k steps. now i save the latest checkpoint separately and resume from that. i wrote up that bug and the others in the architecture walkthrough.

Lyra itself is still kinda dumb. it can answer a simple question and then make up a date. i built it to learn the whole pipeline and might keep tinkering. the data prep and trainer are open source (Apache 2.0), so you can retrain it. both checkpoints are open weights under CC BY-NC 4.0 for noncommercial use.

base weights · instruct weights · training code on GitHub · architecture walkthrough


r/learnmachinelearning • • 19h ago

Request Docker Sandboxes bug could leak AI API keys via malicious updates

1 Upvotes

Docker Sandboxes had a vulnerability that let a malicious update exfiltrate AI API keys from inside a running sandbox. The attack surface is the agent's own tool-call path: a compromised or tampered execution environment can silently swap credentials, redirect traffic, or exfiltrate secrets on any tool invocation the agent makes. The key detail from the disclosure is that the agent kept running after the malicious update landed. There was no interruption, no audit event, no second check on what the agent was now doing with its credentials.

This is not a Docker-specific problem. Any agentic system where an external environment can be mutated between tool calls has the same exposure. The agent's identity and the integrity of its execution context are assumed at setup time and never re-verified mid-run.

For teams running agents in production today: how are you handling mid-session integrity checks? Are you re-validating the execution environment between tool calls, or trusting the initial setup to hold?


r/learnmachinelearning • • 16h ago

Ξ-Coronal Foundations: The Quotient Law of One-Pass Group Computation - A Structural Theory of Computational Information, Sharp Entropy-Accuracy Frontiers, and Fundamental Limits of Algebraically Constrained Artificial Intelligence

0 Upvotes

Ξ-Coronal Foundations - The Quotient Law of One-Pass Group Computation

This research develops a representation-theoretic and group-theoretic framework for understanding the fundamental relationship between information, computation, memory, prediction accuracy, and the algebraic structure of computational architectures.

Its central contribution is an operational distinction between the information contained in a mathematical object and the information resources required to compute that object through a specified algebraic substrate. While Shannon entropy characterizes the uncertainty and coding requirements of a source, it does not, by itself, determine the intermediate information cost of performing an algebraically constrained computation.

Ξ-Coronal Foundations: The Quotient Law of One-Pass Group Computation - A Structural Theory of Computational Information, Sharp Entropy-Accuracy Frontiers, and Fundamental Limits of Algebraically Constrained Artificial Intelligence | Zenodo

Ξ-Coronal Foundations establishes explicit mathematical laws governing this distinction.

1. The Quotient Law of Computational Information

Consider independent, uniformly distributed elements of a finite target group G whose ordered product must be recovered from a single product of independently encoded messages in a computing group S.

The main theorem establishes that the information recoverable under a sublinear entropy budget is governed by the admissible quotient structures of the target group, rather than solely by its Shannon entropy.

For computing substrates whose maximum complex irreducible representation degree is bounded by c, define

q_c(G) = max{|Q| : Q is a quotient of G and d_max(Q) ≤ c}.

Provided the entropy budget reaches log₂ q_c(G) while remaining sublinear in the input length, the asymptotically optimal recovery probability is

P_optimal = q_c(G)/|G|.

Any fixed improvement beyond this threshold requires an entropy budget growing at least linearly with the number of inputs.

The result permits arbitrary position-dependent local encoders, unbounded decoder computation, unlimited independent public randomness, and computing groups of unrestricted cardinality within the specified representation-degree class.

The obstruction is therefore not a consequence of insufficient decoder intelligence, inadequate training, or a particular numerical implementation. It arises from the mathematical relationship between the target computation and the permitted aggregation operation.

2. A Structural Classification of Computational Entropy

The research introduces a compatible free-Abelian cover-rank invariant, r_H(G), which characterizes the information cost of group computation on fixed permuted-integer substrates with finite switching groups.

For positive finite cover rank, the optimal exact Shannon entropy satisfies

H_min(k) = (r_H(G)/2) log₂ k + O(1),

while the minimum number of attainable register states satisfies

M_min(k) = Θ(k^r_H(G)).

The framework distinguishes three fundamentally different computational regimes:

  • Constant entropy: the target is accessible through a compatible finite group section.
  • Logarithmic entropy: exact computation requires a positive finite-rank algebraic cover.
  • Linear entropy: no compatible finite-rank cover exists.

The manuscript additionally establishes Rényi-entropy bounds, entropy-constrained decision frontiers, finite-length spectral estimates, sharp finite-register convergence exponents, and rigidity results characterizing computations operating near their minimum information cost.

3. Beyond Entropy Profiles and Character Tables

A particularly revealing consequence is that computational information cost cannot generally be inferred even from extensive statistical or representation-theoretic invariants.

The quaternion group Q₈ and the dihedral group D₈ possess identical ordinary complex character tables. Nevertheless, their optimal exact computational entropy costs on the same two-coordinate switched-integer substrate have different leading coefficients:

D₈: H_min(k) = ½ log₂ k + O(1).

Q₈: H_min(k) = log₂ k + O(1).

The quaternion computation therefore incurs twice the leading-order entropy cost of the dihedral computation.

This separation demonstrates that group-extension structure can determine computational resource requirements that remain invisible to ordinary character tables, representation dimensions, and Shannon entropy profiles.

More generally, systems with identical complete subset Shannon and Rényi entropy profiles can exhibit exponentially different requirements in their intermediate computational state spaces.

4. Implications for the Foundations of Information Theory

Ξ-Coronal Foundations establishes a mathematical distinction between:

  • Statistical information: the uncertainty and dependence present in a collection of random variables.
  • Computational information: the intermediate information required to realize a specified transformation.
  • Algebraic accessibility: the information recoverable through the operations available to a computing substrate.
  • Computational entropy overhead: the additional representation cost imposed by incompatibility between the target computation and its substrate.

These distinctions complement Shannon's information theory rather than contradicting its mathematical foundations.

The research demonstrates that a complete statistical entropy profile is not a complete description of computational resource requirements. An operational theory of constrained computation must also account for the permitted transformations, aggregation operations, quotient structures, representation degrees, and algebraic extensions.

Consequently, two information systems may possess identical statistical information content while exhibiting fundamentally different computational accessibility.

This provides a foundation for an algebraically sensitive theory of computational information.

5. Fundamental Implications for Artificial Intelligence

Modern artificial intelligence architectures frequently combine distributed representations through additive aggregation, weighted summation, fixed-dimensional memory, attention mechanisms, and restricted state transformations.

Ξ-Coronal Foundations provides mathematical tools for determining when such aggregation mechanisms can efficiently represent and compose structured information.

In particular, the results have implications for:

Neural representation efficiency. Representations with equivalent statistical information content may require dramatically different intermediate entropy budgets when subjected to subsequent computational transformations.

Attention and aggregation mechanisms. Fixed-query, position-local attention admits an additive representation through its weighted numerators and normalization denominators. When the specified one-pass reduction applies, the computational obstruction theorems characterize limitations of this aggregation model.

Long-horizon state tracking. The quotient law identifies which aspects of an ordered noncommutative computation can survive restricted aggregation as sequence length increases.

Algorithmic reasoning. Tasks involving permutation composition, symbolic transformations, group-valued state machines, and other noncommutative operations provide natural mathematical benchmarks for investigating computational representation overhead.

Memory and architecture design. Compatible algebraic operations can eliminate entropy penalties that arise when structurally incompatible computations are forced through restricted aggregation mechanisms.

Architectural expressivity. The research establishes an infinite strict hierarchy of representation-degree-constrained computational classes. Increasing numerical dimension alone need not remove the underlying obstruction when the permitted algebraic operation remains unchanged.

6. Implications for Future AI Architectures and Recursive Self-Improvement

The framework suggests a research direction in which artificial intelligence systems adapt not only their parameters, representations, and memory capacity, but also the algebraic operations through which information is composed.

Potential applications include structure-aware neural memory, multiplicative state transport, group-valued latent representations, adaptive computational substrates, algebraically specialized reasoning modules, and hybrid additive–noncommutative architectures.

For recursive self-improvement, the theory suggests that improving computational efficiency may require identifying and modifying structural bottlenecks rather than merely increasing model size, training data, or inference computation.

An AI system could potentially benefit from recognizing when a task is incompatible with its current aggregation mechanism and selecting a more suitable computational representation.

These are prospective architectural applications motivated by the mathematical results, not claims of experimentally demonstrated intelligence improvement.

7. Scientific Scope and Research Contribution

The principal achievement of Ξ-Coronal Foundations is a transition from isolated computational lower bounds to structural classifications, matching asymptotic constructions, and explicit optimality frontiers.

The research combines finite group theory, non-Abelian harmonic analysis, polynomial identities, group extensions, entropy inequalities, anti-concentration, random-walk analysis, and statistical decision theory into a unified study of algebraically constrained computation.

Its results apply to the precisely specified one-pass product model. Extensions to unrestricted multilayer Transformers, contextual attention, recurrent computation, and arbitrary intelligent agents require additional mathematical reductions.

The accompanying research package includes a mathematical manuscript, a compact machine-readable edition, and executable verification code supporting selected finite constructions and numerical results.

Historical priority remains subject to further literature comparison.

The central principle of Ξ-Coronal Foundations is that the cost of computing information depends not only on how much information exists, but also on the algebra through which it must pass.


r/learnmachinelearning • • 21h 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 • • 21h 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 • • 21h 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 • • 22h ago

Apple Data Science(ICT 3/4) Interview Expectation

Thumbnail reddit.com
1 Upvotes

r/learnmachinelearning • • 13h 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 • • 1d 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 • • 1d ago

Optimization Methods for Large-Scale Machine Learning

Thumbnail arxiv.org
1 Upvotes

r/learnmachinelearning • • 1d 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

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

35 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 • • 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.