Are you planning to learn Python for machine learning this year?

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
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)
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)
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)
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)
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)
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 installation guide for ๐Ÿ‘‡

MacOS: ๐Ÿ”—docs.โ€‹anaconda.โ€‹com/anaconda/install/mac-os/
Windows: ๐Ÿ”—docs.โ€‹anaconda.โ€‹com/anaconda/install/windows/
Linux: ๐Ÿ”—docs.โ€‹anaconda.โ€‹com/anaconda/install/linux/

(9 / 19)
MacOS and Linux have Python pre-installed, for windows you'll have to install it yourself and it is really easy to mess up the install.

Here's a guide with step by step instructions which will help you.
๐Ÿ”—bit.โ€‹ly/3rbDoyl

(10 / 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)
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)
Links for these editors

Collab : ๐Ÿ”—colab.โ€‹research.โ€‹google.โ€‹com
Kaggle Notebooks : ๐Ÿ”—kaggle.โ€‹com/notebooks/welcome
Repl : ๐Ÿ”—repl. it

(13 / 19)
The Basic & Intermediate Python course on freecodecamp go over pretty much all Python concepts you need for machine learning which I have mentioned above.

Basics: ๐Ÿ”—youtube.โ€‹com/watch?v=rfscVS0vtbw
Intermediate: ๐Ÿ”—youtube.โ€‹com/watch?v=HGOBQPFzWKo

(14 / 19)
Another thing which most beginners skip is knowing how to use the terminal properly and the know-how of navigating around folders.

Here's a brilliant website which gives you an overview of the windows command prompt, enough for you to get started.

๐Ÿ”—bit.โ€‹โ€‹ly/34tmnGd

(15 / 19)
The story is a bit different on Linux and Mac, their terminals are extremely powerful and packed to the brim with features, here's a tutorial which will help you get started with the basics ๐Ÿ‘‡

โ€‹๐Ÿ”—youtube.โ€‹com/watch?v=oxuRxtrO2Ag

(16 / 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)
This tutorial will help you in knowing how to work with folders, this is important!

Windows: ๐Ÿ”—youtube.โ€‹com/watch?v=HDmwiJxzIrw
Mac: ๐Ÿ”—youtube.โ€‹com/watch?v=3TAEC-1YUZw
Linux: ๐Ÿ”—youtube.โ€‹com/watch?v=HbgzrKJvDRw

(18 / 19)
That's the end of the thread!

Consider following me if you want to see more content like this, cheers.

(19 / 19)

More from Pratham Prasoon

More from Machine learning

Happy 2โƒฃ0โƒฃ2โƒฃ1โƒฃ to all.๐ŸŽ‡

For any Learning machines out there, here are a list of my fav online investing resources. Feel free to add yours.

Let's dive in.
โฌ‡๏ธโฌ‡๏ธโฌ‡๏ธ

Investing Services

โœ”๏ธ @themotleyfool - @TMFStockAdvisor & @TMFRuleBreakers services

โœ”๏ธ @7investing

โœ”๏ธ @investing_city
https://t.co/9aUK1Tclw4

โœ”๏ธ @MorningstarInc Premium

โœ”๏ธ @SeekingAlpha Marketplaces (Check your area of interest, Free trials, Quality, track record...)

General Finance/Investing

โœ”๏ธ @morganhousel
https://t.co/f1joTRaG55

โœ”๏ธ @dollarsanddata
https://t.co/Mj1owkzRc8

โœ”๏ธ @awealthofcs
https://t.co/y81KHfh8cn

โœ”๏ธ @iancassel
https://t.co/KEMTBHa8Qk

โœ”๏ธ @InvestorAmnesia
https://t.co/zFL3H2dk6s

โœ”๏ธ

Tech focused

โœ”๏ธ @stratechery
https://t.co/VsNwRStY9C

โœ”๏ธ @bgurley
https://t.co/NKXGtaB6HQ

โœ”๏ธ @CBinsights
https://t.co/H77hNp2X5R

โœ”๏ธ @benedictevans
https://t.co/nyOlasCY1o

โœ”๏ธ

Tech Deep dives

โœ”๏ธ @StackInvesting
https://t.co/WQ1yBYzT2m

โœ”๏ธ @hhhypergrowth
https://t.co/kcLKITRLz1

โœ”๏ธ @Beth_Kindig
https://t.co/CjhLRdP7Rh

โœ”๏ธ @SeifelCapital
https://t.co/CXXG5PY0xX

โœ”๏ธ @borrowed_ideas

You May Also Like

๐™Ž๐™๐™–๐™ง๐™ž๐™ฃ๐™œ ๐™ข๐™ฎ ๐™ฌ๐™ž๐™จ๐™™๐™ค๐™ข ๐‘พ๐’๐’'๐’• ๐’ƒ๐’† ๐’”๐’–๐’“๐’‘๐’“๐’Š๐’”๐’†๐’… ๐’Š๐’‡ ๐’•๐’๐’Ž๐’๐’“๐’“๐’๐’˜ ๐’– ๐’“๐’†๐’‚๐’… ๐’•๐’‰๐’† ๐’”๐’‚๐’Ž๐’† ๐’”๐’•๐’–๐’‡๐’‡ ๐’Š๐’ 50๐’Œ ๐’˜๐’๐’“๐’Œ๐’”๐’‰๐’๐’‘ ๐’๐’“ ๐’”๐’๐’Ž๐’†๐’๐’๐’† ๐’Ž๐’‚๐’๐’‚๐’ˆ๐’Š๐’๐’ˆ ๐’š๐’๐’–๐’“ ๐’Ž๐’๐’๐’†๐’š ๐’˜๐’Š๐’•๐’‰ ๐’”๐’‚๐’Ž๐’† ๐’๐’๐’ˆ๐’Š๐’„
Simple and effective way 2 make Money


Idea 1:- Use pivot level like 14800 in case of nifty and sell 14800straddle monthly expiry (365+335) exit if nifty closes on daily basis below S1 or above R1

After closing below S1 if it closes above S1 next day or any day enter the same position again vice versa for R1

Idea2:- Use R1 and S1 corresponding strikes multiple
Incase of R1 15337 take 15300ce
N in case of S1 14221 use 14200pe
Sell both and hold till expiry or exit if nifty closes below S1 or above R1 around closing
If the same bounces above S1 and falls below R1 re-enfer same strikes

Use same criteria for nifty, usdinr and banknifty

(This is must)Use this margin rule for 1lot banknifty pair keep 4Lax margin
For nifty one lot keep 3Lax
For usdinr 100lots keep 4Lax

I bet you if you do this on consistent basis your ROI will be more than 70% on yearly basis.

Couldn't explain easier than this

Criticisms are most welcomed.