r/learnmachinelearning • • 9h ago

Physical AI field split between engineers and RL researchers

Post image
0 Upvotes

r/learnmachinelearning • • 5h ago

Discussion New 'Cognitive Surrender' condition blamed on ChatGPT

Post image
5 Upvotes

Socrates was right.

Researchers discovered a new psychological condition caused by ChatGPT.

They call it "Cognitive Surrender"

2,400 years ago, Socrates warned that outsourcing thought to external tools wouldn't make humans smarter. It would just give us the illusion of wisdom while our minds quietly atrophied.

Now, researchers at the Wharton School proved it is happening in real time.

For decades, psychology divided human thought into two systems:

• System 1: Fast, automatic intuition. • System 2: Slow, analytical deliberation.

That entire framework assumed all thinking happens inside your skull.

But, researchers introduce System 3: artificial cognition operating outside the brain.

To see what System 3 is doing to us, they ran three experiments across 1,372 people and nearly 10,000 reasoning trials.

One group solved logic problems completely on their own. The other group was given an optional AI chatbot they could consult anytime.

And the twist? researchers secretly rigged the AI to randomly feed people confident-sounding wrong answers.

And the results are brutal.

When the AI was right, human accuracy jumped 25 percentage points.

When the AI was wrong, human accuracy crashed 15 percentage points below the people who had no AI at all.

Let that sink in.

People actively overrode their own intuition and logic just to copy a machine's mistake.

But here is the most terrifying part.

Even when the AI gave them completely wrong answers, their confidence went up.

Access to AI inflated certainty across the board, regardless of whether the answer made any sense.

When you ask a human expert for advice, you hear hesitation, nuance, and doubt. Those signals keep your brain alert.

When you ask ChatGPT, it speaks with total, frictionless authority. It suppresses the internal alarm bell that normally tells you something doesn't add up.

Researchers say this is completely different from using a calculator.

Using a calculator is "cognitive offloading." You outsource a math step, but your brain stays in the driver's seat.

Cognitive surrender is when the AI makes the decision, and you adopt it as your own without even realizing you handed over the wheel.

Even when researchers added time pressure, cash incentives, and feedback, faulty AI still dragged human accuracy down.

And the people most eager to trust AI? They were the exact ones least likely to catch its errors.


r/learnmachinelearning • • 5h ago

We're entering an era where everything has a spark of intelligence

Thumbnail
gallery
0 Upvotes

r/learnmachinelearning • • 13h ago

Career I wrote a practical study guide for AI/ML Engineer interviews in FinTech — RAG, agents, LLMOps, and production AI Spoiler

1 Upvotes

Hi everyone,

I’m Camila Chica, an AI/ML and cloud technology professional, and I recently published a technical interview study guide called Cracking the AI/ML Engineer Interview in FinTech.

I wrote it for engineers preparing for roles such as AI Engineer, Machine Learning Engineer, GenAI Engineer, Senior AI/ML Engineer, or AI/ML Engineering Lead—especially in banks, payment processors, insurers, and FinTech platforms.

The focus is on the engineering work behind production AI systems, not just model demos.
The guide follows the enterprise GenAI lifecycle and covers:

RAG: ingestion, chunking, embeddings, retrieval, and context management

Agentic AI: planning, memory, tool use, and multi-agent design

LLM orchestration and enterprise API integration
Evaluation, groundedness, and hallucination control

Security, governance, access control, and auditability
Cloud deployment, monitoring, MLOps, and LLMOps

Technical interview questions, model answers, knowledge checks, and a rapid-review checklist

It includes 25 chapters and is organized around the kinds of architecture decisions and trade-offs engineers need to explain in interviews.

I created it because preparing for these interviews can be difficult when learning materials are scattered across documentation, tutorials, and system-design discussions. I wanted to put the major concepts into one structured study resource.

If you’re preparing for an AI/ML or GenAI role in financial services, I’d appreciate you taking a look.

Book: Cracking the AI/ML Engineer Interview in FinTech
Author: Camila Chica
Amazon: https://link.amazon/B04DOF7LX

I’m especially interested in feedback from engineers working on production RAG, agentic workflows, or AI systems in regulated environments. What topics do you think are most important for candidates to understand today?

Thanks for reading.


r/learnmachinelearning • • 7h ago

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

8 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 • • 1h ago

Tutorial Generative AI

Thumbnail gallery
0 Upvotes

r/learnmachinelearning • • 18h ago

Tutorial How I'd learn AI and LLMs from scratch (the exact resources and study tricks I wish I knew earlier)

0 Upvotes

Most AI roadmaps online are just giant lists of 100+ links that leave you stuck in tutorial hell.

While organizing my own study path, I put together a clean, open source roadmap focused strictly on what to study, the specific tricks to avoid wasting time, and what each resource actually lets you build.

The path covers 5 steps:

  1. Math & Tools: Visual intuition with 3Blue1Brown (no heavy textbooks) and browser based Python/NumPy on Kaggle.
  2. Classic ML: Skimming Stanford CS229 for algorithm intuition and practicing on messy datasets with scikit-learn.
  3. Neural Networks: Coding micrograd from scratch with Karpathy to demystify backprop, then building fast with PyTorch and fast.ai.
  4. LLMs: Understanding attention visually, coding a tiny GPT from scratch, and using modern agentic training workflows (Claude Code, Hugging Face skills, autoresearch).
  5. Shipping: Hosting live demos on Hugging Face Spaces and benchmarking on Kaggle.

You can check out the full visual roadmap, direct links, and study notes here:

https://github.com/EgeSoysal/awesome-ml-roadmap

If you know any high-yield resources or study tricks I missed, feel free to drop them in the comments or open a PR!


r/learnmachinelearning • • 19h ago

Tutorial What Is Harness Engineering ?

Thumbnail
youtu.be
0 Upvotes

Would love to have ur feedback guys


r/learnmachinelearning • • 21h ago

Login • Instagram

Thumbnail instagram.com
0 Upvotes

I'm trying to teach AI Engineering through video games. Would this actually help you learn?

I've been exploring a different way to teach AI Engineering concepts.

Instead of conventional slides, tutorials and architecture diagrams, I'm building a pixel-art dungeon adventure where every level represents a real AI engineering challenge.

Two characters navigate the dungeon, build AI systems, encounter production failures, debug them and unlock new capabilities as they progress.

The first campaign covers Retrieval-Augmented Generation (RAG), starting with the fundamentals and gradually progressing towards production-grade architectures.

I recently published the first episode, and I'd genuinely love feedback from people learning or working in AI.

Does this storytelling format make the concepts easier to understand? Would you prefer shorter explanations or more detailed technical walkthroughs?

I'm still experimenting with the format, so constructive criticism is very welcome.

Here's the first episode: https://www.instagram.com/p/DgXlVepyLy6/


r/learnmachinelearning • • 16h ago

Help Question about Ai intelligence and ideas - Models training

1 Upvotes

Hi folks, I'm using AI since the very first weeks and i'm in the online world for many years now.

I'm not a newbie but I think I'm missing a piece. Maybe someone can help me.

We all know AI is not intelligent but somehow I think it should "know" how to do what we ask it.
Yes, what goes in, comes out. Agree, we have to be able to frame the request in the correct way but I'm finding a bottleneck very often.

For example I'm trying to create a specific image uspcaler for my needs.
I have tried any angle it came to my mind but Claude or Codex, never create something really on point. They do a bit, they do the 40% but never bring it to the next level as requested.

I find my self doing the research as the old times and than feed it to the AI instead the AI telling me what would be the best approach. Ai fails almost on every try.

The upscaler example is just an example but I could tell many many others.

Is there somethig I'm missing about how to prompt Codex or Claude? I tried all the models, in my case I mostrly use Codex: i've tried, Sol, Astra, all of them. No serius results but poor ones.

So the question is maybe: when we have a great idea, but we don't know how to create it. Can Ai really help?


r/learnmachinelearning • • 16h ago

Meme Adam

1 Upvotes

r/learnmachinelearning • • 16h ago

Project Final year project is a mess and I genuinely don't know what to do anymore

2 Upvotes

I'm a final-year B.Tech student working on Human Activity Recognition using deep learning. My group members barely communicate, don't reply to messages and are always unavailable. Most of their work is AI-generated code that they barely understand.

Our mentor doesn't prefer meeting individual members, and because of the constant coordination issues, we haven't met her in two months. I know I should have contacted her earlier, and I genuinely regret that. I finally reached out today, but she said she's busy and will discuss the work in January. Our presentation is on 10th December, and she'll be evaluating us.

I've been working on my part, but I have several doubts regarding the research methodology and have no one to guide me. I also have semester exams and can't possibly handle the entire project alone.

If anyone has experience with HAR, deep learning or ML research and could help me clarify a few doubts, I'd genuinely appreciate it. I'm not asking anyone to do my project, I just need some guidance because I feel completely lost.


r/learnmachinelearning • • 21h ago

Refer me for a job, get 45k.

Post image
0 Upvotes

r/learnmachinelearning • • 21h ago

Discussion Did the prompt rewriter improve the poster, or did the image model?

Post image
32 Upvotes

A short brief goes in and a much better-looking poster comes out. Which part improved: the image model, or the system that turned two sentences into a page of art direction?

Ming-Image-0.2-Design makes that question practical. Its open reference CLI accepts raw text or a prompt file. The recommended prompt enhancer runs outside the generator and can produce a structured layout description. You can save that intermediate file.

For a poster comparison, I’d run the short brief and its saved rewrite through the same checkpoint at the same size, seed and sampling settings. Then change checkpoints and reuse both prompts. Four renders cost more than two, but now a win that disappears with the short prompt tells you something about the workflow you would actually have to ship.


r/learnmachinelearning • • 11h ago

We grouped what ~72k recent ML papers admit they couldn't solve into ~5,000 open problems

Thumbnail
atlas.scime.ai
71 Upvotes

The most honest part of a paper is usually the limitations section, but nobody reads those across papers. So we did. We went through about 72k papers from 2024 to 2026 and grouped the walls that kept coming up into 1,138 topics and just under 5,000 open problems. Each problem links back to the papers that state it, and each topic also shows what's already been tried.

It's free and there's no sign-up, so dig around and steal ideas. If a page gets your area wrong, please tell us.


r/learnmachinelearning • • 6h 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 • • 8h ago

Tutorial I packaged ISLP Chapter 10 data as a private Kaggle Dataset and ran into three non-obvious Kaggle/ISLP issues

1 Upvotes

I’m working through An Introduction to Statistical Learning with Applications in Python (ISLP), Chapter 10. I wanted to keep the chapter’s data and a ResNet50 checkpoint in a private Kaggle Dataset so I wouldn’t have to download everything again in each Notebook session

The process exposed a few issues that were not obvious from the local ZIP structure

1. The Dataset upload failed because Kaggle unpacked a nested archive

My ZIP contained both:

data/cifar-100-python/
data/cifar-100-python.tar.gz

Kaggle Support checked the failed uploads and confirmed this backend error:

Directory already exists: cifar-100-python

Kaggle unpacks uploaded archives server-side. The existing directory and the directory created by extracting the .tar.gz collided. Kaggle removed the incomplete Dataset after processing failed, which is why it never appeared in my Dataset list. Support also confirmed that my intended Dataset slug was not reserved

The fix was to keep the already-extracted cifar-100-python/{train,test,meta} directory in the Kaggle-specific ZIP and exclude the duplicate tar archive

I also checked eight other .gz files by comparing the SHA256 and byte size of their decompressed contents with existing sibling files. Those pairs were identical, so I omitted the redundant compressed copies from this upload package

The rebuilt ZIP had 29 entries, was 315.35 MiB, used POSIX / paths, and passed the ZIP CRC test

2. Creating a Dataset did not attach it to my existing Notebook

After the Dataset was created, /kaggle/input was still empty in my Notebook because I had not attached the Dataset

I had to use Add Input → Your Datasets

After attaching it, the actual path in my Notebook was:

/kaggle/input/datasets/<owner>/<dataset-slug>/

I have replaced the owner and slug with placeholders because the Dataset is private. The important point is that the actual mount path included an additional datasets/<owner>/ level. I now enumerate /kaggle/input instead of assuming the path is simply /kaggle/input/<slug>

3. ISLP’s IMDB loader expected .tensor.gz, but Kaggle Input is read-only

I had kept the decompressed IMDB files, such as IMDB_X_test.tensor, but omitted the byte-identical .tensor.gz copy

ISLP 0.5.0 still looked for IMDB_X_test.tensor.gz. When it did not find that filename, it tried to download the file and write it under the supplied root directory. Since that directory was under /kaggle/input, it failed with:

OSError: [Errno 30] Read-only file system

The data itself was present; the loader did not automatically treat the uncompressed sibling as an equivalent file

As a temporary Notebook-side workaround, I patched the module’s _get_imdb() lookup for the current session: when a requested .tensor.gz is absent but the corresponding .tensor exists, return the .tensor path; otherwise call the original function. I restore the original function in a finally block

The following is a minimal version of the workaround. It assumes ISLP==0.5.0 is installed and the Dataset is already attached. Replace <owner> and <dataset-slug> with your actual mount path:

from pathlib import Path
import ISLP.torch.imdb as imdb

IMDB_DIR = Path(
    "/kaggle/input/datasets/<owner>/<dataset-slug>/data/IMDB"
)

_original_get_imdb = imdb._get_imdb

def _get_imdb_kaggle(
    imdb_file,
    outdir,
    urlbase="http://imdb.jtaylor.su.domains/jtaylor/data/"
):
    requested = Path(outdir) / imdb_file

    if requested.name.endswith(".tensor.gz"):
        plain = requested.with_suffix("")
        if not requested.exists() and plain.is_file():
            return str(plain)

    return _original_get_imdb(imdb_file, outdir, urlbase)

imdb._get_imdb = _get_imdb_kaggle

try:
    imdb_train, imdb_test = imdb.load_tensor(root=str(IMDB_DIR))
    seq_train, seq_test = imdb.load_sequential(root=str(IMDB_DIR))
    lookup = imdb.load_lookup(root=str(IMDB_DIR))
finally:
    imdb._get_imdb = _original_get_imdb

print("Tensor:", len(imdb_train), len(imdb_test))
print("Sequential:", len(seq_train), len(seq_test))
print("Vocabulary entries:", len(lookup))

This modifies an internal helper only for the current Python process. It is a practical workaround, not a documented public ISLP API. A kernel restart removes the patch, so the cell must be rerun before loading IMDB again. It does not modify the Dataset

What I verified

My Kaggle runtime was Python 3.13, PyTorch 2.11.0+cpu, torchvision 0.26.0+cpu, and ISLP 0.5.0

  • MNIST: 60,000 train / 10,000 test, loaded with download=False
  • CIFAR-100: 50,000 train / 10,000 test, loaded with download=False
  • IMDB Tensor and Sequential: 25,000 train / 25,000 test each; load_lookup() returned 88,587 entries
  • ResNet50: local checkpoint SHA256 matched its filename prefix; load_state_dict(strict=True) matched all keys; a CPU forward pass on a zero tensor returned shape (1, 1000)

I have not run the full Chapter 10 Notebook or training, and the ResNet50 test was only a dummy-input forward pass, not real-image classification

Questions

  1. Is there a cleaner supported way to point ISLP 0.5.0’s IMDB loader at already-decompressed local .tensor files, or to separate its download/cache location from the read-only data root, without monkey-patching the private _get_imdb() helper?
  2. When preparing Kaggle Datasets, do you generally avoid including both an extracted directory and its source archive, given Kaggle’s server-side archive extraction?

I’m sharing this as a debugging/learning note in case the same combination of Kaggle archive processing and package-specific data loaders trips up someone else. I’d appreciate suggestions.

References:

  • Kaggle Datasets documentation: https://www.kaggle.com/docs/datasets
  • Kaggle Notebooks documentation: https://www.kaggle.com/docs/notebooks
  • ISLP Chapter 10 lab: https://intro-stat-learning.github.io/ISLP/labs/Ch10-deeplearning-lab.html
  • ISLP 0.5.0 on PyPI: https://pypi.org/project/ISLP/0.5.0/

r/learnmachinelearning • • 8h ago

Sber's GigaChat 4 is open under MIT and scores 80 on SWE-bench

Post image
6 Upvotes

r/learnmachinelearning • • 8h 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 • • 11h ago

A free first-week plan for people who want to learn AI but don't code

1 Upvotes

A lot of "learn AI" advice jumps straight into Python and math. That's the right path if you want to build AI. It is not the only path, and it scares off a lot of beginners who actually just want to use AI well.

If that's you, here is a simple first week that costs nothing and needs no coding.

Day 1. Pick one free assistant — ChatGPT, Claude, Gemini, or Microsoft Copilot — and ask it to "explain AI to me like I'm new to computers."

Day 2. Read that tool's official getting-started page (OpenAI, Anthropic, Google, and Microsoft all have one).

Days 3–5. Take one short, free intro course. Good options:

  • Elements of AI: Introduction to AI, from MinnaLearn and the University of Helsinki (their page says no complicated math or programming is required)
  • Introduction to Generative AI on Google Skills (they list it at about 45 minutes)
  • Microsoft Learn's AI Fluency path (seven short beginner modules)
  • AI for Everyone by Andrew Ng / DeepLearning.AI (the videos are free to watch; a certificate is a paid option, so check the course page)

You only need one of these, not all of them.

Day 6. Practice on something from your real life: a grocery list, a polite email, or a summary of a long article. Leave out passwords, account numbers, and anything else you wouldn't want stored online.

Day 7. Practice writing a clearer prompt. A simple recipe is: who it's for, the task, the context, and the format you want (bullets, a table, a word limit). If the first answer is off, tell the tool what to change.

Two things I wish someone had told me earlier:

  • "Learning AI" can mean building models, or it can mean using the tools well. The second kind needs no coding.
  • AI can sound very sure of itself and still be wrong. Double-check anything important, especially health, money, or legal questions.

I made a free beginner site called Pluto's Place (it's mine) that points to official courses, tools, and a few plain-English guides. The first-week plan above is also written up here, with the official links: https://plutosplace.com/guides/start-learning-ai-free

Happy to answer questions if you're stuck on where to start.


r/learnmachinelearning • • 13h ago

We built 100 free interactive browser labs + single-page architecture diagrams explaining different AI concepts

Post image
1 Upvotes

Hey everyone,

Over the past few months, my co-author (Mohammad Javad Najafi) and I have been working on breaking down 100 core AI/ML concepts into single-page visual plates—one concept per page, one clean architectural diagram, no heavy math walls, and no lock-in to a specific library.

The image above shows four of the later diagrams covering Latent Diffusion, Vision-Language Models, Adversarial Examples, and Benchmark Contamination.

If you'd like to inspect the full layout and text behind these four chapters, I uploaded a free 4-chapter PDF preview on Zenodo:

https://zenodo.org/records/24718068

(They're part of a 100-chapter visual AI project called "The Shape of Intelligence: 100 Visual Experiments in AI".)

Would really appreciate any feedback on the diagrams or labs—especially if anything feels unclear ...

Regards.


r/learnmachinelearning • • 13h ago

Tutorial We built 100 free interactive browser labs + single-page architecture diagrams explaining different AI concepts

Post image
1 Upvotes

Hey everyone,

Over the past few months, my co-author (Mohammad Javad Najafi) and I have been working on breaking down 100 core AI/ML concepts into single-page visual plates—one concept per page, one clean architectural diagram, no heavy math walls, and no lock-in to a specific library.

The image above shows four of the later diagrams covering Latent Diffusion, Vision-Language Models, Adversarial Examples, and Benchmark Contamination.

If you'd like to inspect the full layout and text behind these four chapters, I uploaded a free 4-chapter PDF preview on Zenodo:

https://zenodo.org/records/24718068

(They're part of a 100-chapter visual AI project called "The Shape of Intelligence: 100 Visual Experiments in AI".)

Would really appreciate any feedback on the diagrams or labs—especially if anything feels unclear ...

Regards.


r/learnmachinelearning • • 15h ago

[Project] How I caught two major dataset leaks (http:// shortcut & www. skew) while training an XGBoost phishing detector on 235K URLs

1 Upvotes

While building TrustLink (an end-to-end phishing URL detector using Python, XGBoost, and FastAPI), my initial model hit 99% accuracy on a 235K+ URL dataset—and completely failed on basic real-world test links.

How I built it & what went wrong (Data Leakage & Bias)

  1. The http:// shortcut (99% → 90% accuracy): In the combined dataset (built primarily from PhiUSIIL + Malicious URLs), virtually zero legitimate URLs used http://. XGBoost learned a trivial shortcut split (starts_with_http == True -> Phishing). Once I stripped protocol-level features out, validation accuracy dropped from 99% to 90%, forcing the tree splits to actually rely on lexical structure, TLD entropy, subdomain depth, and brand similarity.
  2. The www. apex-domain bias: All ~134,850 legitimate URLs in PhiUSIIL begin with www., which causes false positives on legitimate bare apex domains (e.g., github.com) or non-www subdomains (docs.python.org).

Pipeline & Next Engineering Sprint

• Current Stack: Custom URL lexical/structural feature extractor -> XGBoost classifier -> FastAPI inference endpoint with three-tier thresholding (Genuine, Suspicious, Phishing).

• Next up in the loop:

- Normalizing leading www. and augmenting legitimate training samples with bare apex domains (e.g., Tranco top domains).

- Adding Punycode (xn--) & mixed-script Unicode homograph detection before running brand Levenshtein similarity.

- Production hardening: structured API logging, rate limiting, and Docker deployment.

For anyone who has worked with URL classification datasets: how do you usually balance lexical features against domain-reputation biases without leaking collection artifacts?

Full code, EDA notebooks, and dataset bias notes are in the repo: https://github.com/Abijith-RA/TrustLink


r/learnmachinelearning • • 15h ago

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

21 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?