Machine Learning
40.5K subscribers
3.62K photos
29 videos
47 files
658 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
This media is not supported in your browser
VIEW IN TELEGRAM
How do transformers work? Learn it by hand ๐Ÿ‘‡

๐—ช๐—ฎ๐—น๐—ธ๐˜๐—ต๐—ฟ๐—ผ๐˜‚๐—ด๐—ต

[1] Given
โ†ณ Input features from the previous block (5 positions)

[2] Attention
โ†ณ Feed all 5 features to a query-key attention module (QK) to obtain an attention weight matrix (A). I will skip the details of this module. In a follow-up post I will unpack this module.

[3] Attention Weighting
โ†ณ Multiply the input features with the attention weight matrix to obtain attention weighted features (Z). Note that there are still 5 positions.
โ†ณ The effect is to combine features across positions (horizontally), in this case, X1 := X1 + X2, X2 := X2 + X3....etc.

[4] FFN: First Layer
โ†ณ Feed all 5 attention weighted features into the first layer.
โ†ณ Multiply these features with the weights and biases.
โ†ณ The effect is to combine features across feature dimensions (vertically).
โ†ณ The dimensionality of each feature is increased from 3 to 4.
โ†ณ Note that each position is processed by the same weight matrix. This is what the term "position-wise" is referring to.
โ†ณ Note that the FFN is essentially a multi layer perceptron.

[5] ReLU
โ†ณ Negative values are set to zeros by ReLU.

[6] FFN: Second Layer
โ†ณ Feed all 5 features (d=3) into the second layer.
โ†ณ The dimensionality of each feature is decreased from 4 back to 3.
โ†ณ The output is fed to the next block to repeat this process.
โ†ณ Note that the next block would have a completely separate set of parameters.

#ai #tranformers #genai #learning

๐Ÿ’ฏ BEST DATA SCIENCE CHANNELS ON TELEGRAM ๐ŸŒŸ
Please open Telegram to view this post
VIEW IN TELEGRAM
๐Ÿ‘7โค4
Found an easy way to learn math for ML: Mathematics for Machine Learning ๐ŸŽ“๐Ÿ“š

This is a curated collection on GitHub, including books, research papers, video lectures, and basic materials on math for studying and reviewing the mathematical foundations of machine learning. ๐Ÿ“–๐Ÿ“Š

It helps build a stronger knowledge base by bringing together trusted resources around topics that machine learning engineers constantly encounter: linear algebra, mathematical analysis, probability theory, statistics, information theory, matrix calculus, and deep learning mathematics. ๐Ÿงฎ๐Ÿค–

Free public repository on GitHub. ๐Ÿ’ปโœจ

https://github.com/dair-ai/Mathematics-for-ML

#MachineLearning #Mathematics #DataScience #Learning #GitHub #AI
โค6
Don't learn ML by randomly jumping through tutorials. ๐Ÿšซ๐Ÿ“š

DS-ML Bootcamp is a public repository for a Data Science and machine learning course for beginners who want a structured path from zero to practical projects. ๐Ÿš€๐Ÿ“Š

It helps transition from installation and concepts to practical ML work, organizing lessons, assignments, code examples, datasets, and solutions around the main machine learning workflow. ๐Ÿ› ๏ธ๐Ÿง 

Key features:

- End-to-end workflow - covers data collection, preprocessing, train/test split, model selection, training, evaluation, and deployment ๐Ÿ”„๐Ÿ“ˆ
- Lesson-based structure - starts with tools/setup, Data Science, ML, data fundamentals, and regression ๐Ÿ“š๐Ÿงฎ
- Practical materials - assignments give learners structured tasks, not just reading notes โœ๏ธโœ…
- Code + datasets - Python examples and raw CSV datasets included for exercises ๐Ÿ๐Ÿ“‚
- Set up for repetition - the README says you can clone the repository and use Jupyter or VS Code while going through lessons ๐Ÿ’ป๐Ÿ”

Free public repository on GitHub. ๐Ÿ†“
https://github.com/goobolabs/ds-ml-bootcamp

#MachineLearning #DataScience #Coding #Python #AI #Learning

โœจ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค6
๐Ÿ”– 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://t.iss.one/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค5
๐Ÿ“š Mathematics without fluff: Three free books for those who want a solid foundation

Three free mathematics books by Allen Hatcher ๐Ÿงฎ

If you're looking for a solid foundation in topology, K-theory, and number theory, Allen Hatcher has an excellent free collection. ๐ŸŽ“

1. Algebraic Topology ๐Ÿ“
A classic textbook on algebraic topology. The book was published by Cambridge University Press, but the online version is available for free under an agreement with the publisher. The website offers the complete PDF, chapters individually, corrections, and additional exercises.
๐Ÿ”— https://pi.math.cornell.edu/~hatcher/AT/AT.pdf

Additionally: Spectral Sequences - a separate, expanded chapter for this book.
๐Ÿ”— https://pi.math.cornell.edu/~hatcher/AT/ATch5.pdf

2. Vector Bundles & K-Theory ๐Ÿงถ
A concise book about vector bundles, topological K-theory, and characteristic classes. Currently, approximately 120 pages are available online, covering the basics of vector bundles, a portion of K-theory, Bott periodicity, characteristic classes, and the stable J-homomorphism.
๐Ÿ”— https://pi.math.cornell.edu/~hatcher/VBKT/VB.pdf

3. Topology of Numbers ๐Ÿ”ข
An unusual introduction to number theory through geometry and pictures. It focuses heavily on quadratic forms, Farey diagrams, continued fractions, Pell's equation, quadratic reciprocity, and Conway's topograph. A PDF of approximately 350 pages is available for free.
๐Ÿ”— https://pi.math.cornell.edu/~hatcher/TN/TNbook.pdf

#Mathematics #Topology #FreeBooks #Learning #STEM #Education

โœจ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค4