Cartoons for Machine Learning Coursera Andrew Ng: Week 1-5 V2

This is an updated and improved version of the original “AI Cartoons” from here (https://theptrk.com/2020/07/05/machine-learning-coursera-week-1-illustrations/). I love drawing these cartoons because it helps solidify the fundamentals and play with concepts in my mind. AI-Cartoons-Weeks-1-5-V2.pdf If you have feedback, I would love to chat on Discord here Thanks for Andrew Ng who sparked the interest in…

JavaScript, node.js versions with nvm

TLDR: use nvm to manage node.js versions; develop and deploy with the same version. $ nvm ls-remote|tail to see the latest versions $ nvm ls-remote|grep LTS to see the “long term support” versions $ nvm install lts/erbium to install “erbium” (the latest release of version 12) $ nvm install 14 to install the latest version…

How to set “jj” as Esc in VSCode Vim

Step 1: Open the command palette shift + cmd + p Step 2: Search for “Preferences: Open Settings (JSON)” Step 3: Add the keybinding inside the settings object “vim.insertModeKeyBindings”: [ { “before”: [“j”, “j”], “after”: [“<Esc>”] } ] Another option is “fd” instead of “jj” since this can be typed faster than “jj”. Why? “jj”…

How to install Python 3 on Mac using homebrew

tldr; install brew; brew install python Homebrew is a great installer for Mac and its main job is to make it easier to install packages. Step 1: Download Homebrew here “brew” hosts its package information here as “formulae“. Step 2: Use brew to install the latest version of Python $ brew install python –verbose Now you…

Machine Learning Introduction: My three favorite resources

My three favorite introductory resources to Machine Learning “Machine Learning” Coursera course by Andrew Ng (link) This is the canonical best introduction to machine learning. It’s recommended by most and is a top choice for introduction to ML even in some FAANG some companies. The course covers supervised learning (including linear regression and logistic regression…

Understanding Dimensions – Linear, Logistic Regression

In the forums of the Coursera course “Machine Learning” by Andrew Ng, there are many questions regarding the dimensions of the input matrix and theta. Here is an intuitive guide to understanding the dimensions. Click the link below! Understanding-Dimensions-Linear-Logistic-Regression.pdf In Summary:    The dimensions of your input matrix (X) is typically clear and driven from…

vim jj to esc mapping

For a single vim session (safe version) :inoremap jj <Esc> For every vim session (still safe) Save this to your .vimrc file in your home directory. ” this is a comment so you remember this later ” insert mode; no recursive; map; <from>; <to> inoremap jj <Esc> * change jj to anything you want, fd…