Learn PyTorch - a quick code-based summary from PyTorch 60-min Blitz

Tensor Standard NumPy like indexing Joining Tensor Multiplying Tensors 👉🏼 In-place operations Bridge with NumPy NumPy array to Tensor AutoGrad Training a NN Forward Propagation Backward Propagation Adjusts the parameters proportionate to the error Reference: Optimize using gradient descent 3Blue1Brown Single Training Step in PyTorch Differentiation in Autograd Tensor everything is tensor computation happens in compiled c++ code over 300 mathematical operations default float32 seed is used to generate replicable data ...

August 22, 2023 · Rohan

The YAML syntax - get over the config files

A quick reference to basic YAML syntax Lists All members of a list are lines beginning at the same indentation level starting with a “- " (a dash and a space) # a list of models - logreg - randomforest - xgboost - mlp Dictionary key: value (colon followed by a space) rohan: name: Rohan Singh job: Data Scientist III skill: Elite Complicated Data Structures # a list of dictionaries - rohan: name: Rohan Singh job: Geneticist skill: Beginner - emmanuelle: name: Emmanuelle Charpentier job: Professor and Researcher skill: Elite Flow Connections It can be used to represent abbreviated data structures ...

September 13, 2022 · Rohan

Organize your computer 🗄

Target Users If you use python and like having an organized computer - this article is for you 👋🏽 The data 💿 in your mac 💻 is spread around into downloads, desktop, etc.There is a python 🐍 tool organize-tool which can help you declutter and organize all your data with a simple YAML configuration. The best part is that - you can also have python code in actions. Thanks 😄 to tfeldmann for this awesome 😎 tool ...

April 30, 2021 · Rohan

Build NLP Apps, quickly! ⏩

Created an app to to zero shot classification using huggingface 🤗 library. In this app, I created a simple streamlit app to try out the zero-shot-classification pipeline provided by HuggingFace. Please take a look at the code here https://github.com/ygivenx/zero-shot-classifier-app Or try it yourself by running Make sure your docker memory is set to over 6GB. docker pull ygivenx/zero-shot-app docker run -it -p 8501:8501 ygivenx/zero-shot-app

April 27, 2021 · Rohan

List all folders over a GB in terminal

Several times, you realize that you need to see folder with a lot of data in it. I have used this command several times and find it really useful to see all the large folders lying around in the current dir.

April 26, 2021 · Rohan

So, you got a new Mac 🍺

Update Feb 2024 with Mac OS Sonoma on M3 Pro. I, recently, changed jobs and got a brand new mac. Now, I am a data scientist and I wanted my new mac to be familiar. In this post, I wanted to show what I installed on my new mac to make it somewhat efficient from the get-go. I Hope, this post will help you get started, quickly :) ...

April 26, 2021 · Rohan