
HPC / AI Accelerated Solutions /
Earth 616
Joined November 2023
- Tweets1.5K
- Following512
- Followers943
- Likes3.6K
Pinned Tweet
Devops channels I follow
Kubernetes (CKAD) - m.youtube.com/playlist?list=…
Devops concepts - m.youtube.com/@TechWorldwith…
Live Projects - m.youtube.com/@AbhishekVeera…
Let's continue this thread 🧵
mention your favourite channels and resources
(so i & others can bookmark them for later)
Digvijay retweeted
Replying to @KartiPC @NTA_Exams
You should also shut down all the shopping malls since there might be a theft in one of them. And close the roads because I heard someone was speeding.
When I was new to Linux and asked basic questions in the community, I got grilled. Now, when I see newbies asking the same questions, I grill them too. The cycle continues.
4
144
ez - snippet of twitter
A girl in my college classroom suddenly started shouting at me while looking at her semester exam report card. I was like, “What did I do this time that I don’t even know about?”
So I walked over to her seat and calmly asked, “Why are you shouting at me?”
Bro, the reply she gave me was hilarious. She said, “I followed your study and sleep timetable, but I still got fewer marks than you.”
I was like, “You can’t just get the same marks as me by copying my timetable. You need an intelligent brain like mine for that.”
Then she hit me with, “But this is possible in KNN.”
And I know you were also confused like me at that moment: WTF is KNN?
KNN (K-Nearest Neighbors) is like that one aunty in your colony who judges you by looking at who your friends are.
If most of your friends are dumb, she’ll label you dumb. If most are smart, you get tagged smart.
Basically, it classifies you based on the "closest neighbors" around you.
How does it work?
- You plot all your data points.
- You get a new data point (you).
- Measure the distance (you vs others).
- You pick the nearest K neighbors.
- You let them vote. Majority wins.
The formula for the distance
- d² = (Xq − Xi)² + (Yq − Yi)²
Where:
- d = distance
- Xq = first feature (e.g., study hours)
- Yq = second feature (e.g., sleep hrs)
- Xi = feature 1 for training point i
- Yi = feature 2 for training point i
Step-by-step explanation:
Assume we have data of 5 students with sleep hours and study hours, labeled as Pass or Fail.
Student Data:
- S1 → Study = 8, Sleep = 7 → Pass
- S2 → Study = 7, Sleep = 6 → Pass
- S3 → Study = 2, Sleep = 3 → Fail
- S4 → Study = 4, Sleep = 2 → Fail
- S5 → Study = 5, Sleep = 4 → Pass
Dataset (5 training points):
Features = (Study hours, Sleep hours) = Label: Pass/Fail
- S1 = (8, 7) = Pass
- S2 = (7, 6) = Pass
- S3 = (2, 3) = Fail
- S4 = (4, 2) = Fail
- S5 = (5, 4) = Pass
Query: I want to classify myself with study hours = 4 and sleep hours = 3: Q = (4, 3).
Let’s see if I pass or fail according to this data.
We’ll use Euclidean distance but compute and compare squared distances (same ordering, no ugly square roots).
Step 1: Compute Squared Distance
- d² = (Xq − Xi)² + (Yq − Yi)²
For Q = (4, 3) to S1 = (8, 7):
- d² = (4 − 8)² + (3 − 7)²
- d² = (−4)² + (−4)²
- d² = 16 + 16 = 32
Similarly:
- Q = (4, 3) to S2 = (7, 6); d² = 18
- Q = (4, 3) to S3 = (2, 3); d² = 4
- Q = (4, 3) to S4 = (4, 2); d² = 1
- Q = (4, 3) to S5 = (5, 4); d² = 2
Step 2: Sort neighbors by distance
Nearest to farthest:
- S4 → Fail with d² = 1
- S5 → Pass with d² = 2
- S3 → Fail with d² = 4
- S2 → Pass with d² = 18
- S1 → Pass with d² = 32
Step 3: Pick K and vote
Case A: K = 1
- Take 1 closest point: S4 (Fail)
- Prediction: Fail
Case B: K = 3
- Take 3 nearest: S4 (F), S5 (P), S3 (F)
- Votes: Fail = 2, Pass = 1
- Prediction: Fail
Case C: K = 5
- Take 5 nearest: S4 (F), S5 (P), S3 (F), S2 (P), S1 (P)
- Votes: Pass = 3, Fail = 2
- Prediction: Pass
Final Verdict:
- K = 1 → Fail
- K = 3 → Fail
- K = 5 → Pass
So depending on K, the result changes.
Congratulations 🎉, you just learned KNN.
Bonus: Why does AI/ML care about KNN?
Handling Missing Data – Fill missing values by averaging or voting from the nearest neighbors’ data (imputation).
Recommendation Systems – Suggest friends on social media by finding users with similar behavior.
Medical Diagnosis – Classify patients as “diseased/healthy” by comparing test results to known cases.
Finance – Detect fraud by comparing new transactions to similar past transactions.
Note: KNN is not just for classification. It can also be used for regression tasks, where instead of taking a majority vote, we take the average of the target values of the nearest neighbors.
3
87
Digvijay retweeted
Learn Linux with these 6 websites🐧
1. LinuxOpsys
linuxopsys.com/
2. Linux Handbook
linuxhandbook.com/
3. Sysxplore
sysxplore.com/
4. Linuxize
Linuxize.com
5. Linux Journey
linuxjourney.com/
6. Linux Survival
Linuxsurvival.com
If you’re young,
prioritize building valuable skills over chasing engagement or waiting on payouts from X.
Skills compound for life
8
80
Learn Linux with these 6 websites🐧
1. LinuxOpsys
linuxopsys.com/
2. Linux Handbook
linuxhandbook.com/
3. Sysxplore
sysxplore.com/
4. Linuxize
Linuxize.com
5. Linux Journey
linuxjourney.com/
6. Linux Survival
Linuxsurvival.com
2015:
- Clash of Clans
- Subway Surfers
- Pokémon
- Shadow fight 2
2019:
- PUBG
- Wi-Fi Hacking tools
- Fortnite
- GTA V
2025:
- X
- GitHub
- VS Code
- ChatGPT
- Cursor
1
12
534

















