54 articles

📰 Dev.to · Sachin Kr. Rajput

Articles from Dev.to · Sachin Kr. Rajput · 54 articles · Updated every 3 hours · View all reads

All ⚡ AI Lessons (11332) ArXiv cs.AIDev.to · FORUM WEBDev.to AIForbes InnovationOpenAI NewsHugging Face Blog
Train/Validation/Test Split: Why Your Model Needs Practice, Dress Rehearsals, AND Opening Night
Dev.to · Sachin Kr. Rajput 2mo ago
Train/Validation/Test Split: Why Your Model Needs Practice, Dress Rehearsals, AND Opening Night
Training accuracy is 99%. You deploy. It fails. Why? Because you tested the chef by letting them taste their own food. You need THREE separate audiences — one t
PCA Explained: Finding the Perfect Angle to Photograph a Sculpture So You Capture Everything in One Shot
Dev.to · Sachin Kr. Rajput 2mo ago
PCA Explained: Finding the Perfect Angle to Photograph a Sculpture So You Capture Everything in One Shot
Your data lives in 100 dimensions. Your model chokes on 100 dimensions. PCA finds the magical angle where a 2D photograph captures 95% of what makes that 100D s
Feature Engineering: The Dark Art of Teaching Your Model to See What You See
Dev.to · Sachin Kr. Rajput 2mo ago
Feature Engineering: The Dark Art of Teaching Your Model to See What You See
You see "January 15, 2024, 3:47 PM" and instantly know it's a winter Tuesday afternoon. Your model sees the number 1705333620. Feature engineering is teaching y
Outliers: The Art of Deciding Whether That 3,000 kg Penguin Is a Data Entry Error or an Actual Monster
Dev.to · Sachin Kr. Rajput 2mo ago
Outliers: The Art of Deciding Whether That 3,000 kg Penguin Is a Data Entry Error or an Actual Monster
Most penguins weigh 5-15 kg. Your dataset has one at 3,000 kg. Is it a typo? A mislabeled elephant? A terrifying mutant? Or did someone actually discover a peng
SMOTE: The Creature Creation Lab That Saves Your Minority Class From Extinction
Dev.to · Sachin Kr. Rajput 2mo ago
SMOTE: The Creature Creation Lab That Saves Your Minority Class From Extinction
You have 50 dragons and 10,000 sheep. Your model learns to ignore dragons entirely. You can't just photocopy dragons — clones are boring and cause overfitting.
Imbalanced Datasets: When Your Model Gets 99% Accuracy by Being Completely Useless
Dev.to · Sachin Kr. Rajput 2mo ago
Imbalanced Datasets: When Your Model Gets 99% Accuracy by Being Completely Useless
Your fraud detection model is 99.9% accurate! Celebration time? No. It just predicts "not fraud" for everything. When 1 in 1,000 transactions is fraud, being la
Label Encoding: The Simple Trick That's Either Genius or Disaster Depending on One Question
Dev.to · Sachin Kr. Rajput 2mo ago
Label Encoding: The Simple Trick That's Either Genius or Disaster Depending on One Question
Red becomes 0, Blue becomes 1, Green becomes 2. Simple! But now your model thinks Green is twice as good as Blue. Sometimes that's fine. Sometimes it's catastro
One-Hot Encoding: The Genius Trick That Works Perfectly Until It Explodes Your Computer
Dev.to · Sachin Kr. Rajput 2mo ago
One-Hot Encoding: The Genius Trick That Works Perfectly Until It Explodes Your Computer
It's the most popular way to handle categories. It's safe, simple, and mathematically beautiful. But feed it 10,000 product IDs and watch your RAM vanish into t
Handling Categorical Variables: Teaching Your Model to Understand "Red," "Blue," and "Green" Without Having a Mental Breakdown
Dev.to · Sachin Kr. Rajput 2mo ago
Handling Categorical Variables: Teaching Your Model to Understand "Red," "Blue," and "Green" Without Having a Mental Breakdown
Your model speaks numbers. Your data speaks words. "Large," "Medium," "Small." "New York," "London," "Tokyo." Someone needs to translate. Get it wrong, and your
Normalization vs Standardization: The Tale of Two Translators Who Speak Different Languages
Dev.to · Sachin Kr. Rajput 2mo ago
Normalization vs Standardization: The Tale of Two Translators Who Speak Different Languages
Both transform your data. Both make algorithms happy. But one squeezes everything into a box while the other centers everything around zero. Choose wrong, and y
Feature Scaling: Why Your Model Thinks a $50,000 Salary Matters More Than 20 Years of Experience
Dev.to · Sachin Kr. Rajput 2mo ago
Feature Scaling: Why Your Model Thinks a $50,000 Salary Matters More Than 20 Years of Experience
Imagine judging athletes where one score is measured in inches and another in miles. The miles would dominate everything — not because they're more important, b
Handling Missing Data: The Detective's Guide to Solving the Case of the Vanishing Values
Dev.to · Sachin Kr. Rajput 2mo ago
Handling Missing Data: The Detective's Guide to Solving the Case of the Vanishing Values
Some witnesses didn't show up. Some evidence vanished. Some clues are just... gone. But the case must be solved. Here's how data scientists handle the mystery o
Generative vs Discriminative Models: The Artist Who Paints vs The Critic Who Points
Dev.to · Sachin Kr. Rajput 3mo ago
Generative vs Discriminative Models: The Artist Who Paints vs The Critic Who Points
One can create a Monet from scratch. The other can only tell you if a painting is a Monet or not. Both are brilliant. But they think in completely opposite ways
The Curse of Dimensionality: Why More Features Can Destroy Your Model Instead of Saving It
Dev.to · Sachin Kr. Rajput 3mo ago
The Curse of Dimensionality: Why More Features Can Destroy Your Model Instead of Saving It
You thought adding more features would help. More data is better, right? Wrong. Welcome to the twilight zone where more becomes less, neighbors become strangers
Cross-Validation: Why Testing Your Model Once Is Like Judging a Restaurant by a Single Bite
Dev.to · Sachin Kr. Rajput 3mo ago
Cross-Validation: Why Testing Your Model Once Is Like Judging a Restaurant by a Single Bite
You wouldn't rate a restaurant after one visit. You wouldn't judge a basketball player by five shots. So why are you evaluating your model on a single train-tes
L1 vs L2 Regularization: The Minimalist vs The Diplomat — Two Philosophies That Shape Your Model
Dev.to · Sachin Kr. Rajput 3mo ago
L1 vs L2 Regularization: The Minimalist vs The Diplomat — Two Philosophies That Shape Your Model
One says "Get rid of what you don't need." The other says "Keep everything, but turn down the volume." Both prevent overfitting. But they create completely diff
Regularization: The Art of Telling Your Model to Calm Down and Stop Overthinking
Dev.to · Sachin Kr. Rajput 3mo ago
Regularization: The Art of Telling Your Model to Calm Down and Stop Overthinking
Your model is a conspiracy theorist. It sees patterns everywhere — even where none exist. Regularization is the calm friend who says "Maybe that's just a coinci
Learning Rate: The One Number That Can Make or Break Your Entire Model
Dev.to · Sachin Kr. Rajput 3mo ago
Learning Rate: The One Number That Can Make or Break Your Entire Model
Too small and you'll wait forever. Too big and you'll explode. The learning rate is the most important hyperparameter in deep learning — and most beginners get
Batch vs Mini-Batch vs Stochastic Gradient Descent: Three Hikers, Three Strategies, One Mountain
Dev.to · Sachin Kr. Rajput 3mo ago
Batch vs Mini-Batch vs Stochastic Gradient Descent: Three Hikers, Three Strategies, One Mountain
One hiker surveys the entire mountain before each step. Another asks a random stranger. The third asks a small group. They all reach the bottom — but their jour
Gradient Descent: How to Find the Lowest Point in a Valley While Completely Blindfolded
Dev.to · Sachin Kr. Rajput 3mo ago
Gradient Descent: How to Find the Lowest Point in a Valley While Completely Blindfolded
You're lost in a foggy mountain valley. You can't see anything. But you CAN feel the ground beneath your feet. That's enough to find your way down. This is exac