When is the Best Sorting Algorithm the best?
July 11, 2018
I wrote a python code which plots the variations of average time of execution for various input sizes. I took the actual time of execution on my machine rather than the counts as this is exercise is for finding the most practical solution.
Read more
Custom ASCII art and random one-liner welcome messages on Linux Terminal start-up
February 10, 2019
You can have ASCII art with a random-one-liner as a welcome message on you Linux terminal. All you need to do is add some lines to your ~/. bashrc file!
Read more
(Slightly) Non-Trivial Implementation of CLI Hangman. A Hands-on Python Tutorial.
October 24, 2019
Bored of learning python the regular way? Make a command line interface Hangman game and learn while you’re at it. First try out the game for yourself! Run the following in your terminal, Never played the chalk board game of Hangman before? Rules are simple, you have to guess the name of a random animal [...]
Read more
DIY Wired Arduino Pro Micro Gamepad
September 10, 2020
This project utilizes the Pro Micro's capability to appear as a HID compatible device to the system.
Read more
DIY Raspberry Pi Power Hat
September 23, 2020
This is a DIY tutorial on how to make a Raspberry Pi Power HAT.
Read more
Fast One Hot Encoding using Numpy (No For Loops)
July 11, 2021
In a lot of artificial intelligence applications, specially in supervised learning classification problems, where the labels for each of the datapoints are available, we often have a one-dimensional array containing the classes of each of the datapoints. Depending upon the machine learning algorithm we are going to apply to our dataset for classification, we might [...]
Read more
Linear vs Logistic Regression, all in Numpy
July 20, 2021
The two entry level machine learning algorithms , linear and logistic regression are quite easy to understand and provide a good way to practice coding the general machine learning pipeline, in their vectorized form. Namely, Prepping the dataset, eg: removing outliers, adding features(polynomial multiples of existing features), normalization, feature scaling. Implementing the learning algorithm function. [...]
Read more