Patrick Loeber Profile Banner
Patrick Loeber Profile
Patrick Loeber

@patloeber

Followers
55,276
Following
896
Media
1,123
Statuses
7,634

Software Engineer • YouTube 250K+ • Helping you to learn Python and Machine Learning • AI Developer Advocate @AssemblyAI @python_engineer founder

Berlin, Deutschland
Joined May 2019
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@patloeber
Patrick Loeber
3 years
Do you want to learn @PyTorch ? I just released a FULL COURSE on YouTube! It teaches you everything you need to get started with this deep learning framework. I hope you enjoy it :)
Tweet media one
41
290
2K
@patloeber
Patrick Loeber
3 years
He: You are the ';' to my code. She: I code in Python.
130
601
4K
@patloeber
Patrick Loeber
1 year
This is one of the best free Python courses you'll find on GitHub!🐍 An exercise-driven course on Advanced Python Programming by @dabeaz :
Tweet media one
17
608
2K
@patloeber
Patrick Loeber
2 years
How to implement "Rock, Paper, Scissors" in Python in 30 lines of code:
Tweet media one
40
266
2K
@patloeber
Patrick Loeber
3 years
K Nearest Neighbors (KNN) implemented from scratch in 30 lines of Python code:
Tweet media one
27
243
2K
@patloeber
Patrick Loeber
3 years
Do you want to learn @PyTorch ? I just released a FULL COURSE on YouTube! It teaches you everything you need to get started with this deep learning framework. I hope you enjoy it :)
Tweet media one
41
290
2K
@patloeber
Patrick Loeber
3 years
When you are a python programmer but still trying your best to enjoy yourself with other programmers
Tweet media one
38
205
2K
@patloeber
Patrick Loeber
2 years
JavaScript developer dealing with Python for the first time
43
343
2K
@patloeber
Patrick Loeber
3 years
Would you recommend learning Python as a first programming language?
501
77
2K
@patloeber
Patrick Loeber
2 years
AI will not replace you. A person using Python instead of JavaScript will.
67
151
2K
@patloeber
Patrick Loeber
3 years
Python libraries I use for ML: Base: - numpy - pandas - matplotlib - scikit-learn Optional: - seaborn - XGBoost - imbalanced-learn DL: - TensorFlow or PyTorch Computer Vision: - OpenCV - Pillow NLP: - HuggingFace - NLTK - spaCy Web: - Flask or FastAPI - streamlit
24
332
2K
@patloeber
Patrick Loeber
2 years
Here are 4 Python interview questions I was asked once for a Senior Python Developer role, including some follow-up questions: 🧵
39
283
1K
@patloeber
Patrick Loeber
3 years
Are you a Python developer? Say Hi!👋
724
44
1K
@patloeber
Patrick Loeber
1 year
I'm a big believer in project-based learning. Here's a curated list of 100+ project-based tutorials, including Data Science & ML projects:
Tweet media one
27
360
1K
@patloeber
Patrick Loeber
3 years
Build A Website Blocker With Python: Here's a simple script that lets you block/unblock certain websites until a given time, and can help you to be more productive :) Works Windows, Mac, and Linux.
Tweet media one
15
214
1K
@patloeber
Patrick Loeber
2 years
My videos helped someone get a high level ML internship. This makes me so happy😊
Tweet media one
27
81
1K
@patloeber
Patrick Loeber
3 years
Principal Component Analysis (PCA) implemented from scratch in 30 lines of Python code: It's an important technique in Machine Learning. It is commonly used for dimensionality reduction by projecting each data point onto only the first few principal components:
Tweet media one
23
188
1K
@patloeber
Patrick Loeber
2 years
Python Tip: How to easily remove a background from images with Python and the rembg package:
Tweet media one
26
165
1K
@patloeber
Patrick Loeber
3 years
When someone asks why Python is great for Machine Learning, just show this:
Tweet media one
20
118
1K
@patloeber
Patrick Loeber
6 months
Inspired by this tweet, I built my own locally running typing assistant with Ollama and Mistral 7B. It only took ~100 lines of Python code and works really well! I also created a video with step-by-step explanations: - Code: - Blog post:
@karpathy
Andrej Karpathy
9 months
Very interesting idea. I tried a custom version of it with a simple prompt and it worked really well out of the box. Basically, GPT is surprisingly good at correcting minor typos, so you can write really really fast, ignore mistakes and keep going, and it comes out just fine.
190
373
4K
27
134
1K
@patloeber
Patrick Loeber
3 years
My favorite Machine Learning Crash Courses 🧵👇
Tweet media one
15
242
1K
@patloeber
Patrick Loeber
3 years
This repository is really on fire! 123k ⭐️ All Algorithms implemented in Python I sometimes like to browse through it to refresh my knowledge about Algorithms & Data Structures. But it also contains nice algorithms for ML, Linear Algebra, and much more!
9
254
1K
@patloeber
Patrick Loeber
2 years
The end is near...
Tweet media one
56
105
957
@patloeber
Patrick Loeber
3 years
17 FREE Courses from Kaggle: Python Intro+Intermediate ML Pandas Data Visualization Feature Engineering Data Cleaning Intro Deep Learning Computer Vision Intro+Advanced SQL AI Ethics Geospatial Analysis ML Explainability NLP Intro to Game AI Time Series
5
241
940
@patloeber
Patrick Loeber
3 years
Two awesome free Machine Learning Crash Courses: 1) Google ML Crash Course (~13 hours) - 2) Kaggle Intro To ML And Intermediate ML (~7 hours) - - Can you recommend other ML crash courses?
11
282
931
@patloeber
Patrick Loeber
3 years
Why should you learn Python? - simple yet powerful - versatile - clean - beginner friendly - tremendous job opportunities - high demand - readability - awesome community - awesome ecosystem - web development - machine learning What else?
41
138
894
@patloeber
Patrick Loeber
3 years
Python data structures cheat sheet: List [] | Tuple () | Set {} | Dict {k:v} Indexing ✅ ✅ ❌ ❌ Ordered ✅ ✅ ❌ ❌ Mutable ✅ ❌ ✅ ✅ Duplicates ✅ ✅ ❌ ❌
10
142
808
@patloeber
Patrick Loeber
2 years
2.5 years and 160 videos later, and we are here😊 Thanks everyone for all the support!!!
Tweet media one
56
31
773
@patloeber
Patrick Loeber
2 years
macOS > Linux > Windows Agree or disagree?
253
26
752
@patloeber
Patrick Loeber
1 year
If you want to learn Python, these are the only three courses you need: 4h Beginner: 6h Intermediate: 1h OOP Course: After that, it's all about practicing on your own. Don't get stuck in tutorial hell.
14
194
709
@patloeber
Patrick Loeber
3 years
Happy Monday! What's your favorite programming language and why is it Python?
129
61
692
@patloeber
Patrick Loeber
3 years
I now have 150 videos on my channel, among them a full intermediate Python course, and PyTorch and TensorFlow courses... But I do not have a course for absolute beginners yet. Would you be interested in this?
35
66
696
@patloeber
Patrick Loeber
3 years
Found another great repo with free learning resources! IPython notebooks that cover: Data Science ML DL TensorFlow scikit-learn Kaggle Big data (Spark, Hadoop MapReduce, HDFS) matplotlib pandas NumPy SciPy Python essentials AWS and much more.
8
138
669
@patloeber
Patrick Loeber
2 years
If you follow me here, have you also subscribed to my channel? ▶️158 videos 🐍Python 🤖Machine Learning 🧠Deep Learning 🌐Python Web Dev 🚀Free courses and crash courses 💻Fun coding projects and tutorials
Tweet media one
18
128
665
@patloeber
Patrick Loeber
3 years
The most comprehensive Python cheat sheet I have seen! And it's free on GitHub🤩 Basic datatypes Generators & decorators ALL important core modules Threading JSON & CSV OOP Typing Logging Exceptions OS commands and sooo much more!
Tweet media one
Tweet media two
Tweet media three
Tweet media four
5
134
665
@patloeber
Patrick Loeber
2 years
10 Websites where you can host Python scripts/apps: 1. render. com 2. pythonanywhere. com 3. heroku. com 4. replit. com 5. deta. sh 6. linode. com 8. hetzner. com 7. digitalocean. com 9. github. com (as GitHub Action) 10. AWS Which one would you add?
42
162
639
@patloeber
Patrick Loeber
2 years
Python Tip: Instead of several if-elif statements, you can use a different control flow by using a dictionary. You can put the options as keys and the functions as values like so:
Tweet media one
20
102
611
@patloeber
Patrick Loeber
2 years
Python 3.11 has two new math functions!
Tweet media one
6
80
584
@patloeber
Patrick Loeber
8 months
Want to run LLMs locally on your Laptop?🤖💻 Here's a quick overview of the 5 best frameworks to run LLMs locally: 1. Ollama Ollama allows you to run LLMs locally through your command line and is probably the easiest framework to get started with. Just use the installer or the
25
120
599
@patloeber
Patrick Loeber
3 years
Quick but very handy Python tip: If you need to check multiple variables for equality at once you can use tuple comparison: (x1, y1, z1) == (x2, y2, z2) This looks much better than: x1 == x2 and y1 == y2 and z1 == z2 It's very nice for a concise __eq__ implementation:
Tweet media one
12
78
592
@patloeber
Patrick Loeber
2 years
Here are some awesome Python automation ideas: - Send Emails - Build A Job Board Scraper - Build A Price Tracker - Exchange Your Desktop Background Image - Schedule And Post Tweets I implemented all of them 👇
16
108
589
@patloeber
Patrick Loeber
2 years
I believe my career as a Software Engineer has peaked this year. I fixed 3 printers of different family members during the holiday season.
33
20
576
@patloeber
Patrick Loeber
2 years
I want to host a simple Python script that should run all day. Where would you host it? Some sites that come to my mind: - Linode - Render - Hetzner - pythonanywhere - Heroku - (Replit??) What else? What would you choose?
107
76
586
@patloeber
Patrick Loeber
2 years
anyone else doing cd dir cd subdir1 cd subdir2 instead of cd dir/subdir1/subdir2 or is it just me? 😄
155
31
566
@patloeber
Patrick Loeber
2 years
Last week, a recruiter offered me a role because she found my GitHub repos. This is a reminder that you don't need to be a creator on YouTube or Twitter. If you want to get a job as Software Dev, working on open-source projects is the best thing you can do for your CV!
17
65
564
@patloeber
Patrick Loeber
2 years
200K! I’m beyond grateful. Thank you all!
Tweet media one
25
48
545
@patloeber
Patrick Loeber
3 years
How to send an email with Python:
Tweet media one
13
66
553
@patloeber
Patrick Loeber
1 year
I am giving away these 2 book because I already finished them. Is anyone interested? Must be in the EU, though, because of shipping (I'll pay for it). Simply like and RT and I'll pick a random winner this week.
Tweet media one
42
228
528
@patloeber
Patrick Loeber
3 years
One thing I love about Python is how quickly you can build stuff. It takes 5 lines of code to get a fully functioning web application:
Tweet media one
35
59
527
@patloeber
Patrick Loeber
3 years
Do you know I have a free TensorFlow Beginner course? 3 hours, 11 lessons, 5 projects. - Installation - Tensor Basics - Neural Nets - Regression - CNN - Save & Load - Functional API - Star Wars Project - Transfer Learning - RNN & LSTM - NLP
Tweet media one
8
124
527
@patloeber
Patrick Loeber
3 years
Want to improve your Python in a weekend? Follow my free intermediate/advanced Python articles and videos. 21 lessons, 6 hours of content: 1. Lists 2. Tuples 3. Dicts 4. Sets 5. Strings 6. Collections 7. Itertools 8. Lambda 9. Exceptions 10. Logging 11. JSON ...
9
93
520
@patloeber
Patrick Loeber
2 years
Learn Python, TypeScript, Docker, and the world is your oyster!🟡🔵🐳
12
98
507
@patloeber
Patrick Loeber
3 years
4 free courses to learn Python. What's holding you back? Learn Python - Beginners Course: Python for Everybody - University Course: Intermediate Python Course: API Development:
3
159
515
@patloeber
Patrick Loeber
1 year
50 Days of Deep Learning. This amazing free course by @misraturp teaches you everything you need to know about neural networks.
Tweet media one
16
156
505
@patloeber
Patrick Loeber
2 years
Python Tip: Loop over multiple Lists with zip:
Tweet media one
15
60
497
@patloeber
Patrick Loeber
2 years
Python interview question: Remove all leading & trailing spaces WITHOUT using built-in String methods! How would you implement it?
Tweet media one
142
56
498
@patloeber
Patrick Loeber
2 years
Free Technical Writing Course by Google! Every Engineer should learn to be a good writer! It can: 🏂Demonstrate your skills 🚀Get you job opportunities 💸Earn you money 🤗Improve documentation and help other developers 🔗
Tweet media one
13
124
477
@patloeber
Patrick Loeber
2 years
My pinned tweet about my PyTorch course is sitting at 997 likes… Can you please give this a small bump 🙏😄
Tweet media one
14
62
479
@patloeber
Patrick Loeber
2 years
Python Tip: You can use `__dict__` on a class instance to get all instance attributes as a dictionary:
Tweet media one
9
54
466
@patloeber
Patrick Loeber
2 years
What's the #1 resource for learning Python you would recommend to beginners?
112
77
463
@patloeber
Patrick Loeber
2 years
New video! PyTorch Crash Course🚀 I have condensed all my PyTorch knowledge into 50 minutes! It teaches you all important concepts to get started with this Deep Learning framework!
Tweet media one
10
87
462
@patloeber
Patrick Loeber
3 years
import tensorflow as tf "You know, I'm something of a Machine Learning Engineer myself..."
11
53
450
@patloeber
Patrick Loeber
1 year
What a week for AI 🚀 - @OpenAI GPT-4 - @AnthropicAI Claude - @thukeg ChatGLM - @GoogleAI PaLM API & MakerSuite - @AssemblyAI Conformer-1 - Stanford Alpaca - Midjourney v5 - Microsoft 365 Copilot - @PyTorch PyTorch 2.0 - @LightningAI PyTorch Lightning 2.0 Exciting times!
15
100
439
@patloeber
Patrick Loeber
2 years
My programming journey: 2012: MATLAB 2013: Java, C++ 2014: Python 2017: JavaScript 2018: Swift 2023: Rust? Julia? What about you? (Note: I'm not a pro in all of them)
102
35
433
@patloeber
Patrick Loeber
3 years
I need a small push 😃🙏 What content you can expect if you follow me: - Python 🐍 - Machine Learning🤖 - Deep Learning🧠 - Programming💻 - Python🐍 - Python 🐍 - Python 🐍 - Python 🐍
Tweet media one
43
47
436
@patloeber
Patrick Loeber
3 years
A few Python project ideas: automation scripts website scraping web app build a REST API games GUI app machine learning project data analysis/visualization project Have you already created a project? Share it below 👇
20
86
430
@patloeber
Patrick Loeber
2 years
Python Tip: Use a context manager to open a file:
Tweet media one
10
42
424
@patloeber
Patrick Loeber
2 years
A lot of beginners don't know how to use git and GitHub. And I don't blame you at all. In 6 years of college I've never even heard of it😅 Had to learn it the hard way later... Here's an awesome tutorial by @thecodercoder explaining it for you:
7
80
413
@patloeber
Patrick Loeber
2 years
Rate my setup :)
Tweet media one
85
1
403
@patloeber
Patrick Loeber
3 years
10 Python core modules you should familiarize yourself with after the passing the beginner stage: - collections - itertools - logging - random - functools - threading - multiprocessing - contextlib - datetime - dataclasses Which ones would you add?
19
81
408
@patloeber
Patrick Loeber
2 years
Automating boring tasks with Python is such a great feeling🤗
10
28
403
@patloeber
Patrick Loeber
2 years
Did you know you can use @github Actions to schedule Python scripts for free?🚀 This can be used for basically any automation task you want: web scraping backups email sending Twitter automation ... In my latest video I show you how to do it:
Tweet media one
11
72
403
@patloeber
Patrick Loeber
3 years
Fun fact: I once had to explain PCA in a job interview. I failed… Here’s what happened and one very important point about PCA you should remember: 🧵 1/n
@patloeber
Patrick Loeber
3 years
Principal Component Analysis (PCA) implemented from scratch in 30 lines of Python code: It's an important technique in Machine Learning. It is commonly used for dimensionality reduction by projecting each data point onto only the first few principal components:
Tweet media one
23
188
1K
9
56
393
@patloeber
Patrick Loeber
2 years
I currently have 13 unfinished Udemy courses sitting on my Dashboard. How about you?🥲
134
9
384
@patloeber
Patrick Loeber
3 years
4 essential datatypes in Python: - List - Tuple - Set - Dictionary Know the difference!
Tweet media one
8
75
379
@patloeber
Patrick Loeber
2 years
In my latest tutorial we implement 5 games in Python: - Guess The Number - Rock Paper Scissors - Wordle - Connect Four - Tic Tac Toe For all games I left a TODO in the end for you to implement on your own. I believe this is an excellent learning opportunity! Video + Code 👇
8
64
380
@patloeber
Patrick Loeber
3 years
Are you new to ML and want to get started? I found another free Google Crash Course: Introduction to Machine Learning Problem Framing. It walks you through common ML terms, how to define ML problems, and how to propose solutions. Takes only 1 hour!
1
82
375
@patloeber
Patrick Loeber
3 years
A few weeks ago I tweeted how a friend of mine bet on the UEFA Euro 2020 and used a Machine Learning model to predict the games. He won first prize within his betting group! Now here’s a detailed description behind his approach 🧵 1/10
12
88
367
@patloeber
Patrick Loeber
2 years
37
83
360
@patloeber
Patrick Loeber
2 years
Do you like Machine Learning and want to win a Udemy course? I'll announce a big giveaway in about 4 hours, so keep your eyes open👀
34
44
359
@patloeber
Patrick Loeber
2 years
5 years ago I finished my master's degree. German companies love to ask "Where do you see yourself in 5 years?" So 5 years later I'm running a successful YouTube channel and working for the coolest US startup, 100% remote. Not in a million years I would have given this answer
18
20
363
@patloeber
Patrick Loeber
2 years
Python Tip: The most efficient way to find the longest String in a List in Python is by using the `max` function with `key=len`:
Tweet media one
5
45
361
@patloeber
Patrick Loeber
2 years
age+=1
Tweet media one
70
3
358
@patloeber
Patrick Loeber
2 years
I’m thinking of changing my YouTube channel name.🤔 Send some ideas! I pay $100 if I end up using your suggestion! Channel content: programming, python, machine learning. The only condition is that the name should no longer contain the word „Python“
733
23
343
@patloeber
Patrick Loeber
3 years
Got a DM saying my programmer profile looks interesting. Got a follow up DM asking if I'm interested in a personal fitness coach since programmer usually don't exercise much 😅 I have to give this guy some credit. He's targeting the right niche 😂
25
19
350
@patloeber
Patrick Loeber
2 years
Do you have a favorite Playlist for coding?🎧
138
36
338
@patloeber
Patrick Loeber
1 year
Buzzwords you can put on your LinkedIn page after taking an Intro to Python course: - AI - Machine Learning - Web3 - Big Data - Deep Learning - Cloud Computing - Data Science - Business Intelligence - Backend - Fullstack - DevOps - MLOps Recruiters will love you😉
15
59
340
@patloeber
Patrick Loeber
1 year
Do you know I have a free TensorFlow course? 11 Lessons (3.5 hours): - Installation - Tensor Basics - Neural Nets - Regression - CNN - Save/Load - Functional API - Image Classification - Transfer Learning - RNN - NLP
Tweet media one
5
71
342
@patloeber
Patrick Loeber
2 years
Python Tip: Do you know about the built-in `any()` function? any() returns True if any element of the iterable is true. Look at this example and how it can be used to refactor code:
Tweet media one
13
43
330
@patloeber
Patrick Loeber
3 years
Dream combinations❤️: Python + C++: Great for Computer Vision 🤖 Python + JavaScript: Great for full stack applications 🌎 Python + Flutter: Great for full stack mobile apps📱
8
45
323
@patloeber
Patrick Loeber
3 years
I can't imagine how ML Engineers and Data Scientists could get their jobs done without numpy, pandas, scikit-learn, PyTorch, and TensorFlow... Grateful that all those wonderful libraries exist 🙏
10
40
332
@patloeber
Patrick Loeber
2 years
Finally, a new video I've been working on for the whole week it out🥳 JAX Crash Course - Accelerating Machine Learning code! Learn everything to get started with JAX:
Tweet media one
8
59
324
@patloeber
Patrick Loeber
3 years
My repo ml-study-plan is currently trending on GitHub🚀 It's now my most starred repo, surpassing even my PyTorch and MLFromScratch repos.⭐️ People also started contributing, which is nice! If you know some more great resources, feel free to make a PR.
6
77
327
@patloeber
Patrick Loeber
1 year
🙂
Tweet media one
16
30
332
@patloeber
Patrick Loeber
4 months
One of the YouTube videos I'm most proud. 730K people watched it🤯 Deep Learning With PyTorch - Full Course However, it's 3 years old. Should I create a fresh one?
Tweet media one
51
16
326
@patloeber
Patrick Loeber
9 months
Fine-tuning Mistral 7B using QLoRA🤙 Found this awesome notebook from @HarperSCarroll that walks you through LLM finetuning step-by-step:
Tweet media one
4
41
334
@patloeber
Patrick Loeber
1 year
I built a website for a (potential) SaaS in pure Python. Some features: - Accept payments - User Authentication - Nice Landing page - Integrated blog Below I have a code template for you so you can build a similar website in only 1 hour👇
Tweet media one
20
56
324
@patloeber
Patrick Loeber
2 years
Python Tip: You can use this syntax with f-Strings to align strings:
Tweet media one
3
45
320