Are you planning to learn Python for machine learning this year?
Here's everything you need to get started.
🧵👇
Here's everything you need to get started.
🧵👇
In this thread, we'll look at all the concepts in Python you need to know for machine learning along with free resources to help you out.
All of this is based on my experience of successfully teaching 300+ students how to code using Python.
(2 / 19
All of this is based on my experience of successfully teaching 300+ students how to code using Python.
(2 / 19
You can use many languages for machine learning, why Python?
Because of 2 reasons:
- Comparatively easier to learn than other languages
- Has the biggest and most mature community
This makes Python a no-brainer to learn for machine learning as a beginner.
(3 / 19)
Because of 2 reasons:
- Comparatively easier to learn than other languages
- Has the biggest and most mature community
This makes Python a no-brainer to learn for machine learning as a beginner.
(3 / 19)
These are the absolute basics which you must know about:
- Basic terminal commands
- Basic arithmetic (+,-,/,*)
- Accepting user input
- For & While loops
- Exception handling
- If-Else statements
- Functions, modules & Imports
(4 / 19)
- Basic terminal commands
- Basic arithmetic (+,-,/,*)
- Accepting user input
- For & While loops
- Exception handling
- If-Else statements
- Functions, modules & Imports
(4 / 19)
Then comes the more tougher concepts which you must know about:
- Object oriented programming in Python:Classes, Objects, Methods
- PIP (Pypi)
- List slicing
- String formatting
- Dictionaries & Tuples
- Managing environments
- Dunder methods like __init__
(5 / 19)
- Object oriented programming in Python:Classes, Objects, Methods
- PIP (Pypi)
- List slicing
- String formatting
- Dictionaries & Tuples
- Managing environments
- Dunder methods like __init__
(5 / 19)
This are even more advanced concepts but you do not need then to start machine learning:
- Lambda functions
- Built in libraries like CSV, requests, Sqlite
- Map and Filter
- *args and **kwargs
- Async
- Decorators
(6 / 19)
- Lambda functions
- Built in libraries like CSV, requests, Sqlite
- Map and Filter
- *args and **kwargs
- Async
- Decorators
(6 / 19)
From what I've observed, most beginners just find it really difficult just to get the Python environment setup and then using the terminal becomes an even bigger nightmare for them.
Let's tackle this issue.
(7 / 19)
Let's tackle this issue.
(7 / 19)
You need to install:
- Anaconda for managing environments (different versions of Python)
- Python3
- Machine learning packages like Sckit learn and TensorFlow using pip when needed
(8 / 19)
- Anaconda for managing environments (different versions of Python)
- Python3
- Machine learning packages like Sckit learn and TensorFlow using pip when needed
(8 / 19)
After you do all of that, you need a place to write your code which is called a "code editor".
Here are some popular ones
- VS Code: Feature-rich
- Sublime: Light and simple
- Jupyter: Useful for prototyping
- Pycharm: Full-blown IDE i.​e has loads of features.
(11 / 19)
Here are some popular ones
- VS Code: Feature-rich
- Sublime: Light and simple
- Jupyter: Useful for prototyping
- Pycharm: Full-blown IDE i.​e has loads of features.
(11 / 19)
If all of that seems complicated to you, I suggest you use Google colab, Kaggle notebooks or repl.​it
These are online editors which have everything set up for you.
Not to mention colab and kaggle notebooks give you a free GPU for your machine learning workloads.
(12 / 19)
These are online editors which have everything set up for you.
Not to mention colab and kaggle notebooks give you a free GPU for your machine learning workloads.
(12 / 19)
Keep in mind that you should learn how to use the linux terminal because at some point in your machine learning journey you will have to deal with linux.
It is not important to learn it at the start but I do recommend it.
(17 / 19)
It is not important to learn it at the start but I do recommend it.
(17 / 19)
That's the end of the thread!
Consider following me if you want to see more content like this, cheers.
(19 / 19)
Consider following me if you want to see more content like this, cheers.
(19 / 19)
Loading suggestions...