Machine Learning with Python
68.6K subscribers
1.56K photos
136 videos
200 files
1.31K links
Learn Machine Learning with hands-on Python tutorials, real-world code examples, and clear explanations for researchers and developers.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
U-Net by hand โœ๏ธ ~ 17 steps walkthrough below

I consider U-Net as a key milestone in deep learning, the first image-to-image model that really worked!

It came out of medical imaging, an unusual place, not from NeurIPS or CVPR or ACL.

Now it is the backbone of diffusion models, which you see in almost all modern image generation models.

I drew the network as a C so the matrix multiplication flows naturally down.

Tilt your head to the right and it is a U again. ๐Ÿคฃ

Goal: push a 3 x 16 image down to a 2 x 4 bottleneck and back out again, filling in every cell yourself.

= 1. Given =

An image of three channels, R, G and B, sixteen pixels wide, and every kernel the network will use.

= 2. Convolution 1 =

Let us slide the first kernel over the image. Each output is one multiply-and-add over a 2 x 3 window, and the result is the green feature map.

= 3. Find the maxima =

We circle the largest value in each 1 x 2 window. Circling first is worth the extra step: it is the pooling decision, made before anything is written down.

= 4. Max pool 1 =

Let us copy those maxima down. Sixteen columns become eight, and half the detail is gone for good.

= 5. Convolution 2 =

We convolve again with the second kernel, deeper into the contracting path. The feature map is blue now.

= 6. Find the maxima again =

Same move as step 3, on the blue map.

= 7. Max pool 2 =

Eight columns become four.

= 8. The bottleneck =

Let us convolve once more. This is the bottom of the U, a 2 x 4 block that is everything the network kept.

= 9. Spread it out =

We start back up. The transposed convolution writes each bottleneck value into a wider grid, leaving gaps between them.

= 10. Transposed convolution 1 =

Let us fill those gaps by convolving over the spread-out grid. Four columns become eight.

= 11. The first skip =

We copy the encoder's matching row straight across. This is the skip connection, and it is the whole reason a U-Net can recover detail that pooling threw away.

= 12. Convolution with the skip =

Let us convolve the upsampled features together with the copied ones.

= 13. Spread it out again =

Same as step 9, one level up.

= 14. Transposed convolution 2 =

Eight columns become sixteen, back to the width we started at.

= 15. The second skip =

The encoder's first feature map comes across, the one made before any pooling happened.

= 16. Convolution and ReLU =

We convolve, then cross out every negative and set it to zero.

= 17. Output convolution =

Let us apply the last kernel. Out comes R', G' and B', an image the same size as the one we started with.

The outputs:

R' = [3, 0, 7, 0, 7, 0, 17, 0, 3, 0, 9, 0, 2, 0, 6, 0]
G' = [1, 20, 1, 10, 1, 12, 1, 19, 2, 5, 1, 11, 1, 3, 1, 7]
B' = [4, 20, 8, 10, 8, 12, 18, 19, 5, 5, 10, 11, 3, 3, 7, 7]

Congrats! You just calculated a U-Net by hand.

๐Ÿ’พ Save this post!

#UNet #DeepLearning #AI #NeuralNetworks #ComputerVision #MachineLearning

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค8๐Ÿ‘2
Forwarded from Machine Learning
๐Ÿ”– Over 300 real-world case studies of ML systems from top companies. ๐Ÿค–

We found a repository that collects genuine ML engineering experience โ€“ not theory from textbooks, but real stories of implementing models in production. ๐Ÿ“š

Inside, you'll find case studies from Uber, Netflix, Google, and other companies: how they built the architecture, what problems arose, where the systems failed, and what solutions helped them recover. ๐Ÿ—๏ธ

โ›“ Link to GitHub
https://github.com/Engineer1999/A-Curated-List-of-ML-System-Design-Case-Studies

#MachineLearning #MLCaseStudies #DataScience #Engineering #Uber #Netflix

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค8๐Ÿ˜1
๐Ÿ”– 5 Free Courses on AI Agents

1. https://huggingface.co/learn/agents-course โ€” AI Agents Course ๐Ÿค—

2. https://deeplearning.ai/courses/ai-agents-in-langgraph โ€” AI 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://t.iss.one/addlist/0f6vfFbEMdAwODBk

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค5๐Ÿ”ฅ2
CS189 self-study run: Convolutional Neural Networks ๐Ÿง ๐Ÿ“š

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

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

#CS189 #DeepLearning #CNN #SelfStudy #AI #MachineLearning
โค8๐Ÿ‘2
Forwarded from Machine Learning
๐Ÿ“š "Natural Language Processing and Large Language Models" is a new open-access book from Springer, written by Chengqing Zong, Yang Zhao, and Yanjun Ma.

It's almost 400 pages long and provides an introduction to modern natural language processing and large language models.

Inside, you'll find information on: neural networks, distributed representations, language models, Transformers, BERT, GPT, tokenization, sentiment analysis, information extraction, text summarization, natural language understanding, machine translation, question answering, and RLHF.

In my opinion, this is a good reference guide for those who want to understand these topics without a very high barrier to entry. I would recommend it. โœจ

https://link.springer.com/book/10.1007/978-981-92-0682-7

#NLP #LLM #ArtificialIntelligence #MachineLearning #DataScience #TechBooks

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค7
Tensor Algebra: A Small Concept That Has a Big Impact in AI ๐Ÿง 

One thing I realized while learning deep learning is that tensors are everywhere. Whether you're working with TensorFlow, PyTorch, or building transformer models, almost everything revolves around tensor operations.

Although we often think of tensors as multi-dimensional arrays in machine learning, they're the structures that allow neural networks to efficiently represent and process complex data.

Here's a quick summary:
- Scalar (Rank 0): A single value
- Vector (Rank 1): A one-dimensional collection of values
- Matrix (Rank 2): A two-dimensional arrangement of values
- Tensor (Rank 3 or higher): A higher-dimensional representation used to model complex data

A few places where tensors show up every day:
- Images are represented as 3D tensors (Height ร— Width ร— Channels).
- Mini-batches become 4D tensors during model training.
- Transformer models process embeddings, attention scores, and hidden states as tensors throughout the network.
- Operations like matrix multiplication, broadcasting, reshaping, tensor contraction, and automatic differentiation power modern deep learning.

I created the infographic below as a simple visual reference while revisiting tensor algebra. I hope it's helpful for anyone learning deep learning or refreshing the fundamentals.

I'm curious. How did you first learn about tensors?
- Through mathematics?
- While using TensorFlow or PyTorch?
- During your first deep learning project?
- Or was there another resource that made the concept finally click?

I'd love to hear your experience and any resources you'd recommend for beginners. Looking forward to learning from your experiences and recommendations.

#DeepLearning #TensorFlow #PyTorch #AI #MachineLearning #Tensors

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

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค10๐Ÿ‘7
Forwarded from Machine Learning
๐Ÿ“š 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://t.iss.one/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค8๐Ÿ†2
๐Ÿ“– "A Little Book on the Fundamentals of Generative AI" - an intuitive introduction to the mathematics:

arxiv.org/pdf/2605.29713

#GenerativeAI #Mathematics #DeepLearning #AIResearch #MachineLearning #arXiv

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค7๐Ÿ‘1
Forwarded from Data Analytics
One of the key moments when I truly understood how transformers work: ๐Ÿง โœจ

"Stop thinking of a transformer as a conveyor belt, where each layer transforms the output of the previous one."

"Start thinking of it as a residual flow." ๐ŸŒŠ

Each block in a transformer has a residual connection that adds the input of the block to its output:

x' = f(x) + x


Because of this addition, the attention mechanism or MLP within the layer โ€“ the function f in the formula above โ€“ actually does NOT transform the input. Instead, it calculates the information that needs to be ADDED to the input before passing it to the next block! โž•

Imagine the main part of the transformer as a shared whiteboard. ๐Ÿ“ Each block reads what it needs from it and adds its own notes. All changes are additions.

Furthermore, layers can exchange information over distances. A block in the first layer can write information, and a block in the fifth layer can read it, even though there is no direct connection between them. ๐Ÿ”—

I owe these ideas to an older article by Anthropic about the architecture of transformers:
transformer-circuits.pub/2021/framework

#Transformers #DeepLearning #AI #MachineLearning #NeuralNetworks #Tech

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค8๐Ÿ‘1
๐Ÿ“š Download 10 Python books for FREE:

1. Think Python โ€” Oโ€™Reilly
https://t.co/X7y3pX68IW

2. The Big Book of Small Python Projects
https://inventwithpython.com/bigbookpython/

3. Data Structures
https://opendatastructures.org/ods-python.pdf

4. Data Science Handbook
https://t.co/9aOLdiAbim

5. Data Analysis
https://wesmckinney.com/book/

6. Data Science
https://t.co/TusyBWGfrx

7. Machine Learning
https://t.co/7veOwESe8q

8. Statistics
https://t.co/waWDQylQpY

9. Think Bayes
https://allendowney.github.io/ThinkBayes2/

10. Clean Code in Python โ€” Packt
https://t.co/OHhVgF1L65

#Python #FreeBooks #Programming #DataScience #MachineLearning #Coding

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค7
๐Ÿš€ RESEARCH & DIGITAL SOLUTIONS โ€” YOUR PARTNER IN SUCCESS!
Are you a researcher, student, business owner, or developer looking for professional support? We are here to help you turn your ideas into real results! ๐Ÿ’ก

๐Ÿ”ฌ 1. Scientific Research & Academic Publishing
Professional review and evaluation of scientific manuscripts before submission.
Guidance on journal selection and publication strategies.
Expert advice to improve research quality and presentation.
Support for researchers throughout the academic publishing process.

๐Ÿ’ป 2. Website & Software Development
Professional website design and development for businesses and individuals.
Custom electronic systems tailored to your needs.
Technical assistance for students and academic projects.

โš™๏ธ 3. API & User Interface (UI) Services
API development and integration.
Modern, responsive, and user-friendly interface design.
Seamless integration between applications and systems.

๐Ÿ“Š 4. Real-World & Synthetic Datasets
Providing real-world datasets for research and analysis.
Creating customized synthetic datasets according to your requirements.
Data support for scientific research, machine learning, and AI projects.

๐Ÿค 5. FREE Discussion & Consultation
Discuss your research ideas and technical projects with us.
Get initial guidance and recommendations.
Explore the best solutions for your academic or professional needs.

๐ŸŒŸ WHY CHOOSE US?
โœ… Research and technology expertise in one place.
โœ… Tailored solutions based on your needs.
โœ… Professional guidance and practical support.
โœ… Free initial discussion and consultation.

๐Ÿ“ฉ CONTACT US ON TELEGRAM
๐Ÿ‘จโ€๐Ÿ’ป Team Admin & Support: @Omidyzd62
๐Ÿ’ฌ Feel free to contact us to discuss your ideas, ask questions, or explore how we can help!
Your Research. Your Ideas. Our Expertise. Your Success. ๐ŸŽฏ

#ResearchSupport #AcademicPublishing #ScientificResearch #WebDevelopment #SoftwareDevelopment #API #UIUX #Datasets #MachineLearning #ArtificialIntelligence #StudentSupport
โค4๐Ÿ‘1๐Ÿ’ฏ1
Forwarded from Machine Learning
๐Ÿ”– A Comprehensive Resource for Machine Learning Practice

The platform offers:

๐Ÿซก 1200+ machine learning tasks;
๐Ÿซก Mathematics, from linear algebra to PCA;
๐Ÿซก Deep Learning, NLP, and Computer Vision;
๐Ÿซก Labs with real datasets;
๐Ÿซก Learning paths and interview preparation;
๐Ÿซก Projects using GPT, RL, and CUDA.

Almost everything can be accessed directly in your browser, and basic tasks are available for free.

โ›“๏ธ Link to the platform
https://enghusseinsheikho.substack.com/p/a-comprehensive-resource-for-machine?r=3hwnr8&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true

#MachineLearning #DeepLearning #DataScience #AI #Coding #Tech

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

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค8
โญ๏ธ If you want to get dangerously good at generative AI,

then save these 10 GitHub repos:

1๏ธโƒฃ Generative AI for Beginners

โ†’ https://github.com/microsoft/generative-ai-for-beginners

2๏ธโƒฃ LLM Course

โ†’ https://github.com/mlabonne/llm-course

3๏ธโƒฃ Build a Large Language Model From Scratch

โ†’ https://github.com/rasbt/LLMs-from-scratch

4๏ธโƒฃ Prompt Engineering Guide

โ†’ https://github.com/dair-ai/Prompt-Engineering-Guide

5๏ธโƒฃ Awesome LLM Apps

โ†’ https://github.com/Shubhamsaboo/awesome-llm-apps

6๏ธโƒฃ OpenAI Cookbook

โ†’ https://github.com/openai/openai-cookbook

7๏ธโƒฃ Hands-On Large Language Models

โ†’ https://github.com/HandsOnLLM/Hands-On-Large-Language-Models

8๏ธโƒฃ GenAI Agents

โ†’ https://github.com/NirDiamant/GenAI_Agents

9๏ธโƒฃ Awesome Generative AI Guide

โ†’ https://github.com/aishwaryanr/awesome-generative-ai-guide

๐Ÿ”Ÿ Anthropic Courses

โ†’ https://github.com/anthropics/courses

๐Ÿ’ฌ Anything else you'd add to this list?

===

๐Ÿ‘‹ PS - Want my AI Engineering Playbook for FREE?

Get a copy right now:

โ†’ https://systemdesign42.github.io/ai-engineering-playbook/

#GenerativeAI #GitHub #AI #LLM #MachineLearning #TechTips

๐ŸŒŸ Join Best TG Channels https://t.iss.one/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
Please open Telegram to view this post
VIEW IN TELEGRAM
โค10
๐Ÿ”ฅ Free IT & Dev Study Kits โ€“ 2026 Prep, No Signup

If youโ€™re prepping for cloud, dev, or AI roles this year, these free kits cover the gaps most people skip โ€” cert basics, hands-on labs, and mock exams. No signup traps, no hidden fees.

๐Ÿ“˜ Cert E-Book โ€” covers Cisco & AWS fundamentals, good for first-time cert takers
โ†’ https://bit.ly/4yrk1Ti

๐Ÿชœ Online Free Course โ€” structured path, works as a refresher before exams
โ†’ https://bit.ly/4hUprRP

โ˜๏ธ Free AI Materials โ€” LLM basics to fine-tuning practice notebooks
โ†’ https://bit.ly/4yt1iXy

๐Ÿ“Š Cloud Study Guide โ€” cheat-sheet style, handy for interview prep
โ†’ https://bit.ly/4el4Eod

๐Ÿง  Free Mock Exam โ€” test yourself before booking the real thing
โ†’ https://bit.ly/4sbWlkl

๐Ÿ“Œ Save this or forward it to your dev/study group โ€” good resources are worth sharing. ๐Ÿ’ช

๐ŸŒ Community: https://chat.whatsapp.com/CS7VOvQCLZG5BJPazBGm1v
๐Ÿ“ฒ Personalized help:
https://wa.link/xd2fu6
#Python #Cloud #AWS #Cisco #AI #MachineLearning #DevOps #ITCertification #FreeResources #TechCareers
โค5๐Ÿ‘2๐Ÿ”ฅ2
๐Ÿ’พ Free Deep Learning Course from NASA

We found a practical course on applying modern AI methods in astronomy and astrophysics.

It covers neural network architectures, generative models, training on scientific data, simulation-based inference, and research AI agents.

โ›“ Link to the course
https://deeplearning4astro.com/

#AI #DeepLearning #NASA #Astronomy #MachineLearning #DataScience

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

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