Nadeem retweeted
How a convolutional neural network turns pixels into a label.
A small kernel K slides across the image, multiplying the pixels under it by its weights and summing: S(i,j) = Σₘ Σₙ I(i+m, j+n) K(m,n). The result is a feature map that lights up where the kernel's pattern appears.
Several kernels give several maps. Max pooling keeps the largest value in each 2×2 block.
Fully connected layers combine the features, and softmax turns the scores into class probabilities.
Nadeem retweeted
9 Essential ML Algorithms 🤖
① Naïve Bayes
② Perceptron
③ Linear Regression
④ K-Nearest Neighbors
⑤ Neural Networks
⑥ Principal Component Analysis
⑦ Support Vector Machine
⑧ Gradient Descent
⑨ Logistic Regression
Save this cheat sheet for your ML journey! 📌
#AI
Nadeem retweeted
Nine machine learning models, one formula each.
Linear regression fits a weighted sum by gradient descent. The perceptron wraps it in a sign function and nudges the weights toward each misclassified point. Logistic regression squashes it into a probability with the sigmoid.
KNN votes among the nearest points. PCA projects onto the top eigenvector of the covariance. An RBF SVM's boundary bends more as its kernel narrows.
Nadeem retweeted
Reinforcement learning learns from rewards, not labels.
Each step the agent sees a state sₜ (a shape), picks an action aₜ (a bin), and the environment returns a reward rₜ₊₁: +1 if right, −1 if wrong.
The agent keeps a value Q(s,a) and updates it with Q ← Q + α[r + γ maxₐ′ Q(s′,a′) − Q]. Each sort ends the episode, so the max term is 0 and Q ← Q + α(r − Q). With α = 0.5 a correct pair goes 0.5, 0.75, 0.875, … → 1.









