Machine Learning
41.3K subscribers
3.69K photos
36 videos
48 files
718 links
Real Machine Learning — simple, practical, and built on experience.
Learn step by step with clear explanations and working code.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Feature Scaling: Why Feature Scaling Affects Model Training

Feature scaling is often overlooked because it seems like just another data preprocessing step. However, in practice, it often helps models train faster and more stably. Imagine one feature has values ranging from 0 to 1, while another has values ranging from 0 to 10,000. Although both features may be equally important for prediction, it's more difficult for the optimizer to work with such data.

This means it has to take more steps to find a good solution. Additionally, regularization becomes less effective because features with different scales require coefficients of different magnitudes. Let's look at how this looks in a simple example.

Install dependencies:
pip install numpy scikit-learn

Import libraries:
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import roc_auc_score

Let's create a small synthetic dataset. It will have two features: the first has a normal scale, and the second is about a thousand times larger.

Importantly, both features actually influence the target variable. That is, the only difference between them is the scale.
np.random.seed(42)
x_small = np.random.normal(0, 1, 300)
x_large = np.random.normal(0, 1000, 300)

X = np.vstack([x_small, x_large]).T

y = (x_small + 0.001 * x_large > 0).astype(int)

Now, let's split the data into training and testing sets. We won't scale anything yet—first, let's see how the model behaves on the original data.
X_train, X_test, y_train, y_test = train_test_split(
X, y,
test_size=0.3,
random_state=42,
stratify=y
)

Let's train a logistic regression model without scaling.

In addition to the model's quality, let's also look at the number of iterations (n_iter_). This metric shows how much work the optimizer had to do to find the coefficients.
model = LogisticRegression()
model.fit(X_train, y_train)

pred = model.predict_proba(X_test)[:, 1]

print("ROC-AUC:", roc_auc_score(y_test, pred))
print("Iterations:", model.n_iter_)

Now, let's scale the features to the same scale using StandardScaler.

It calculates the mean and standard deviation only for the training set and then uses the same values for the test set. This is important because the model should not "peek" at the test data during training.

After this transformation, both features are approximately on the same scale, and it becomes easier for the optimizer to work with them.
scaler = StandardScaler()

X_train_scaled = scaler.fit_transform(X_train)
X_test_scaled = scaler.transform(X_test)

Now, let's retrain the model.

We're using the same model, the same data, and the same parameters. The only difference is that the features are now scaled.
model = LogisticRegression()
model.fit(X_train_scaled, y_train)

pred = model.predict_proba(X_test_scaled)[:, 1]

print("ROC-AUC (scaled):", roc_auc_score(y_test, pred))
print("Iterations (scaled):", model.n_iter_)

Most often, the ROC-AUC doesn't change much. However, the number of iterations becomes smaller. This means that the optimizer found a solution faster, and the training was more stable.

🔥 Feature scaling is a simple data preprocessing step that, in many cases, allows the model to train faster and more stably. For logistic regression, SVMs, neural networks, and other algorithms that use numerical optimization, it's best not to skip it.

#DataScience #MachineLearning #Python #Coding #Tech #AI

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
6👍1
Diving deep into Deep Learning, Reinforcement Learning, Machine Learning, Computer Vision, and NLP. 🤖🧠

Lectures: 🎓📚
https://github.com/kmario23/deep-learning-drizzle

#DeepLearning #MachineLearning #AI #ReinforcementLearning #ComputerVision #NLP

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
6
6
This media is not supported in your browser
VIEW IN TELEGRAM
Hugging Face Viewer is now at 2300 viewable models! 😊 Would love more feedback and ideas!

It's a free interactive graph visualizer for learning about the architectures of open source AI models! 🚀

Hovering nodes in the graph links to a definitions + animation and the paper that introduced it!

🌟 hfviewer.com

#HuggingFace #AI #MachineLearning #OpenSource #TechNews #DataViz

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk
⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
5
🔖 A large collection of lectures on Machine Learning and Deep Learning 🧠

We found a repository that brings together high-quality materials on several areas of artificial intelligence. 🤖

Excellent material for both learning and reviewing key topics. 📚

⛓️ Link to GitHub
https://github.com/kmario23/deep-learning-drizzle

#MachineLearning #DeepLearning #AI #Tech #Coding #Learning

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
5
Maths, CS & AI Compendium: A free textbook for aspiring AI/ML engineers

🚀 A large open-source compendium on mathematics, computer science, and AI has gone viral on GitHub. The project already has around 6.3K stars.

📚 The author positions it as a "non-traditional textbook" for practitioners: less dry notation, more intuition, connections between topics, and real-world context.

📖 It contains 20 chapters:
* Vectors, matrices, calculus
* Statistics and probability
* Machine learning and deep learning
* NLP, computer vision, audio/speech
* Multimodal learning and autonomous systems
* GNN, OS, algorithms
* Production engineering, GPU/SIMD
* AI inference, ML systems design, and applied AI

🤖 There is also a MCP server so that Claude Code, Cursor, VS Code, and other AI assistants can use the compendium as a local knowledge base.

💡 This is a great resource for those who want to not just "learn ML," but to build a solid foundation: mathematics → CS → ML systems → modern AI.

🔗 GitHub: https://github.com/HenryNdubuaku/maths-cs-ai-compendium

#AI #MachineLearning #ComputerScience #Maths #OpenSource #DevCommunity

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
6
This media is not supported in your browser
VIEW IN TELEGRAM
sequence of four inputs, carrying every hidden state forward yourself. 🔄

1. Given

Four inputs X1 to X4, recurrent weights and biases for hidden layers a, b, c, and an output layer y. 📊

2. Initialize

Let us set the hidden states a0, b0, c0 to zeros. Nothing has been read yet. 🛑

3. First hidden layer (a)

We build the transformation matrix by laying the input weights, the state weights and the biases side by side. We stack X1, the previous state a0, and an extra 1 underneath. Multiply the two, and a1 = [0, 1]. 🧮

4. Second hidden layer (b)

Let us do it again, one layer up. Now a1 is the input, and b0 is the previous state. Multiply: b1 = [1, -1]. ⬆️

5. Third hidden layer (c)

Once more. b1 is the input, c0 is the previous state, and c1 = [1, 1]. 🔁

6. Output layer (y)

Let us read the answer off the top of the stack. Weights and biases against [c1; 1], and Y1 = [3, 0, 3]. 📝

7. Carry the states forward

We copy a1, b1, c1 across. This is the whole trick of a recurrent network: the states are the only thing the next input gets to see. 🚀

8. Process X2

Repeat steps 3 to 6 for the second input: three hidden layers, then the output. Y2 = [5, 0, 4]. 🔢

9. Carry the states forward

Let us copy a2, b2, c2 across, exactly as before. 🔄

10. Process X3

Same four moves, third input. Y3 = [13, -1, 9]. 🧩

11. Carry the states forward

We copy a3, b3, c3 across, one last time. ⏭️

12. Process X4

Repeat once more. Y4 = [15, 7, 2].

You have just run a Deep RNN over a whole sequence by hand. ✍️

The outputs:
Y1: [3, 0, 3]
Y2: [5, 0, 4]
Y3: [13, -1, 9]
Y4: [15, 7, 2]

The takeaway: the hidden states are the memory, and they are the only memory there is. Everything the network learns from X1 has to fit in those little two-cell columns and get handed forward, one step at a time. 🧠

#RNN #DeepLearning #AI #MachineLearning #NeuralNetworks #Tech

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk
⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
6👍1💩1
I kept running into the same problem: some of the best AI/ML books are legally free. The authors put them up on their own sites, but the links are scattered across personal pages, university sites, and random GitHub repos nobody finds.

So I built a single index: Awesome Free AI Books. 30+ books across Deep Learning, Reinforcement Learning, Bayesian/Probabilistic ML, NLP & LLMs, Math for ML, Computer Vision, Generative Models, Causal Inference, GNNs, and AI Safety. Think Goodfellow’s Deep Learning, Sutton & Barto’s RL bible, Murphy’s Probabilistic ML, Bishop’s latest, Jurafsky & Martin’s SLP3 draft, and more.

Every link points straight to the author’s or publisher’s own page—no rehosted PDFs, no shady mirrors. A weekly GitHub Action checks all links so they don't rot over time. 🔄

It’s open source and open to contributions. If you know a legitimately free book that’s missing, PRs and issues are welcome. 🤝

Repo:
https://github.com/MarcosSete/awesome-free-ai-books

#AI #MachineLearning #DeepLearning #NLP #LLMs #OpenSource

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk
⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
4
🚀 TOP 8 Machine Learning Regression Metrics Explained

Choosing the right metric isn't academic; it's the difference between a model that works in production and one that breaks trust.

Here's the map every ML engineer should carry in 2026:

1️⃣ MEAN ABSOLUTE ERROR (MAE)
Average miss, easy to explain. On average, we're off by 5 units.

2️⃣ MEAN SQUARED ERROR (MSE)
Squares mistakes → big errors hurt more.

3️⃣ ROOT MEAN SQUARED ERROR (RMSE)
Square root of MSE. Same unit as the target, easier to relate.

4️⃣ R² COEFFICIENT
Explains how much variation your model captures. But don't confuse fit with usefulness.

5️⃣ ADJUSTED R²
Keeps R² honest. Extra useless features won't inflate the score.

6️⃣ MAPE (Mean Absolute Percentage Error)
Errors in percentages. Great for business dashboards, weak if actual values get near zero.

7️⃣ Huber Loss
Blends MAE & MSE. Punishes small errors like MSE, resists outliers like MAE.

8️⃣ Quantile Loss
Perfect when predicting ranges instead of single points like demand at the 90th percentile.

👁 VIEW

● = Actuals ○ = Predictions

MAE → avg |●-○|
MSE → avg (●-○)²
RMSE → √MSE
R² → variance explained
MAPE → % error
Huber → balance (MSE + MAE)
Quant → percentile accuracy

🏆 THE TAKEAWAY
Metrics decide what success looks like.
Choose wrong, and your good model is useless.
Choose right, and you build trust, adoption, and impact.

📝 TL;DR
MAE → simple error
MSE → punishes big errors
RMSE → interpretable scale
R² → fit, not prediction power
Adj R² → guards against overfitting
MAPE → % view, fragile near zero
Huber → outlier-resistant
Quantile → forecasts ranges

#MachineLearning #DataScience #RegressionMetrics #MLOps #AI #TechTips

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
3
🔖 5 Free Courses on AI Agents

1. https://huggingface.co/learn/agents-courseAI Agents Course 🤗

2. https://deeplearning.ai/courses/ai-agents-in-langgraphAI Agents in LangGraph 🧠

3. https://deeplearning.ai/short-courses/multi-ai-agent-systems-with-crewai/ — Multi AI Agent Systems with CrewAI 🤖

4. https://microsoft.github.io/AI-For-Beginners/agentic-ai/AI Agents for Beginners 🚀

5. https://deeplearning.ai/courses/building-code-agents-with-hugging-face-smolagents — Building Code Agents with Hugging Face smolagents 💻

If you want to learn about Agentic AI, save this collection. 💾

#AI #ArtificialIntelligence #MachineLearning #TechNews #FreeCourses #LearnAI

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
5
n8n cheat sheet 📝

I wish I had this cheat sheet when I started automating using n8n. 🚀

Save this before it disappears. This cheat sheet covers everything from triggers to AI agents, expressions to keyboard shortcuts. ⌨️🤖

Whether you're building your first workflow or your hundredth, you'll want this in your back pocket. 💼

#n8n #Automation #Workflow #AI #Productivity #NoCode

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
5
"Introduction to Machine Learning" is another free textbook on machine learning, approximately 600 pages long, which emphasizes a deep mathematical understanding of the subject. 📚🧮

The book begins with the mathematical foundations necessary for further study: linear algebra, mathematical analysis, probability theory, matrix analysis, and optimization methods. It then covers the main supervised learning algorithms: linear and logistic regression, the k-nearest neighbors method, decision trees, random forests, boosting, and neural networks. 🤖📈

A significant portion of the book is dedicated to probabilistic and generative models. It discusses Monte Carlo methods, graphical models, Bayesian networks, variational methods, normalizing flows, variational autoencoders (VAEs), and generative adversarial networks (GANs). 🎲🧠

The final chapters discuss clustering, principal component analysis (PCA), learning on manifolds, and theoretical estimates of a model's ability to generalize. 🔍📊

In my opinion, this is an excellent resource for those who want to gain a broad understanding of machine learning and understand the mathematics underlying the key methods, rather than treating them as "black boxes." 💡

https://arxiv.org/pdf/2409.02668

#MachineLearning #DeepLearning #AI #Mathematics #DataScience #NeuralNetworks

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
4👍1
🔥 Land Your Dream Job – Free Interview Prep Resources Inside!

🌈Struggling with tough interview questions? Nervous about technical grilling? You're not alone.

We've just released a bunch of 100% free interview prep kits for 2026 – covering common Q&As, behavioral questions, technical deep-dives, and role-specific tips for #Cisco, #AWS, #PMP, #AI, #Python, #Excel, and #Cybersecurity.

💥No signup traps, no hidden fees – just click and download.

🎯 Interview Question Bank → https://bit.ly/4xzKG0o
📘 Free Cert E‑Book → https://bit.ly/4zffDZp
🪜 Free Online Course → https://bit.ly/3TPLkbl
☁️ Free AI Materials → https://bit.ly/4q7T7gR
📊 Cloud Study Guide → https://bit.ly/4wbsjgV

Tag a friend who's also job-hunting – Ace together! 💪

🌐 Join the community: https://chat.whatsapp.com/FQOG04r9xSiIa2ElhaNUJU
🌐Join SPOTO telegram Group: https://xn--r1a.website/spotoITstudygroup
📲 Need personalized help? → https://wa.link/1zrbdh
3👎1
Forwarded from Udemy Free
🔔 Still Available!

400 Machine Learning Interview Questions with Answers 2026

Machine LearningnInterview Questions Practice Test | Freshers to Experienced | Detailed Explanations for Each Question…

🌍 Language: English (US)
👥 Students: 205 students
⭐️ Rating: 0.0/5.0 (0 reviews)
🏃‍♂️ Enrollments Left: 1
Expires In: 0D:30H:30M
💰 Price: $23.03FREE
🆔 Coupon: 58223770053913048BEB

Opens instantly — your free link unlocks on its own in seconds, no ad required.

💎 By: https://xn--r1a.website/Udemy26
#MachineLearning #AI #DeepLearning #FreeCourse #Udemy #OnlineLearning
2
CS189 self-study run: Convolutional Neural Networks 🧠📚

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

#CS189 #DeepLearning #CNN #SelfStudy #AI #MachineLearning
6
Media is too big
VIEW IN TELEGRAM
A Collection of Machine Learning Libraries for Python 🤖

A large repository containing over 900 libraries and frameworks for machine learning. 📚

All projects are sorted by quality and popularity, which helps you quickly find the best tools for working with AI and ML. ⚙️

Repo: https://github.com/ml-tooling/best-of-ml-python?tab=readme-ov-file#vector-similarity-search-ann

#MachineLearning #Python #AI #DataScience #MLTools #Programming

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
8
🚨 Cambridge has just released a real bombshell this time.

📚 A whole collection of classic textbooks on AI and machine learning is now available for free in PDF format.

If you want to really understand machine learning and don't want to waste money on overpriced courses, these ten books will be enough to build a very solid foundation.

From simple to complex.

1️⃣ Understanding Machine Learning

One of the best books for beginners. It covers the basic theoretical algorithms of machine learning.

🔗 https://cs.huji.ac.il/~shais/UnderstandingMachineLearning/understanding-machine-learning-theory-algorithms.pdf

2️⃣ Mathematical Foundations of Machine Learning

If you're not very confident in your math skills, I would start here.

🔗 https://mml-book.github.io/book/mml-book.pdf

3️⃣ Mathematical Analysis of Machine Learning Algorithms

A more in-depth look at the mathematical principles of machine learning algorithms.

🔗 https://tongzhang-ml.org/lt-book/lt-book.pdf

4️⃣ Theoretical Principles of Deep Learning

The theoretical foundations of deep learning and an understanding of why it all works.

🔗 https://arxiv.org/pdf/2106.10165

5️⃣ Neural Networks and Learning Machines

A systematic analysis of neural networks and the principles of their training.

🔗 https://arxiv.org/pdf/1901.05639

6️⃣ Graph Deep Learning

A good starting point for those who want to understand graph neural networks.

🔗 https://yaoma24.github.io/dlg_book/dlg_book.pdf

7️⃣ Machine Learning: A Probabilistic Perspective

It allows you to look at machine learning from a probabilistic and algorithmic perspective.

🔗 https://people.csail.mit.edu/moitra/docs/bookexv2.pdf

8️⃣ Probability Theory: Theory and Examples

Fundamental theory of probability. Very useful if you want to understand machine learning beyond the level of using ready-made libraries.

🔗 https://sites.math.duke.edu/~rtd/PTE/PTE5_011119.pdf

9️⃣ Fundamentals of Applied Probability

More focus on the practical application of probability theory.

🔗 https://sites.math.duke.edu/~rtd/EP4A/EP4A_April2021.pdf

🔟 Advanced Data Analysis

An advanced level for those who want to seriously improve their data analysis skills.

🔗 https://stat.cmu.edu/~cshalizi/ADAfaEPoV/ADAfaEPoV.pdf

#AI #MachineLearning #FreeBooks #DataScience #DeepLearning #Tech

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
8
📚 This is probably one of the best technical books on how large language models are trained at scale:

> GPU memory and profiling
> Breaking down computations into blocks, kernel fusion, and FlashAttention
> Data parallelism, tensor parallelism, pipeline parallelism, and context parallelism

I've already read the free online version, but I still had to buy a physical copy for my library. 📖

You can also read it for free on Hugging Face:

https://huggingface.co/spaces/nanotron/ultrascale-playbook

#LLM #AI #MachineLearning #TechBooks #DataScience #Coding

Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
5👎2
🌈 2026 Job-Seeker Toolkit – Free Interview & IT Cert Resources

🔥The 2026 hiring market is shifting fast. We've put together a 100% free resource bundle covering #Cisco, #AWS, #PMP, #AI, #Python, #Excel, and #Cybersecurity — including:
Q&A banks & mock exams
Behavioral interview guides
Technical deep-dives for coding & infrastructure roles
Real-world project scenarios

Perfect for Software Developer Jobs, IT Internships, and Python Projects practice.

🎯 Interview Question Bank → https://bit.ly/4A6m0hM
🪜 Online Free Course For Python & Excel→https://bit.ly/46bUzWm
📘 Free Cert E‑Book → https://bit.ly/4xXkAVx
☁️ Free AI Materials → https://bit.ly/4xMBLJd
📊 Cloud Study Guide → https://bit.ly/4cAQ8rN
🧠 Free Mock Exam → https://bit.ly/4xcp3Cx

Tag a friend who's job-hunting or grinding Python projects — let's ace it together! 💪
🧠 Join Study Community:
https://chat.whatsapp.com/DcpVeYSV6xNJzdBQU9eRyU
❄️ 1-on-1 support: https://wa.link/gyvbek
3