In this blog, I touch on a core function that’s used in many machine learning scenarios whether explicitly or as a part solving a given problem. This is extremely useful for recoding values for classification (binary or multiclass) where we need to map some categorical values into a finite range of values (e.g. 0 or […]
Tag: programming
Creating music and teaching coding
Have you heard of Earsketch? It’s an amazing, fun way to create music while learning, practicing, teaching coding! Yes, music and coding all in one with its online, free platform (for students)…you just need a browser. It supports Python and Javascript coding in their online editor and you can compile and run the code on […]
Machine Learning (Prediction with Dummy Variables)
I already shared ways to leverage Python for Machine Learning and predict values in univariate and multivariate regression models. Be sure to read those before proceeding to this as this builds on those concepts. In this post, we’ll also make prediction using regression model but this time we have categorical values to deal with. Categorical […]
Machine Learning In Python (Multivariate Linear Regression)
In my previous post, I shared how to predict using a single criteria leveraging machine learning in Python. If you haven’t read that, be sure to read that first here to get a better understanding of what we’re trying to do. In this post, I’ll let computer predict something based on multiple criteria. For example, […]
Machine Learning in Python (Univariate Linear Regression)
In this post, I share a method to utilize Machine Learning using Python. I have collected some data from CDC site about birth rate in the USA over several years. What I’d like to show you is how we can predict birth rate for a year that is NOT present in the dataset. For example, […]
Make a computer guess your word – Python
You’ve undoutedly played games like hangman or seen TV games such as Wheel of Fortune where you’re supposed to guess a word by only given the number of letters (or their placeholders, blank tiles) in a given number of tries. You may have also written similar games yourself. In this post however, I’m going to […]
Words to numbers challenge – Python
In this blog I share techniques on how to convert a dataset containing words into actual numbers (integer or float) save the output with numbers to an external CSV/XLSX data file. If you’re wondering why would one ever need this? Here’s a scenario: A list of movies and their corresponding revenues were read into a […]
General Tree Data Structure – Python
In this post, I’ll demonstrate implementation of what’s known as a General Tree (not binary tree…that’ll be discussed soon in a different post)…it’s a unique data structure that Queue or Stacks cannot easily handle or at all. The key characteristic of this DS is that it allows for hierarchical data representation and relationships…think, taxonomy. Real-world […]
Multi-threading in Python
Most of the python code you encounter while searching online is single-threaded and in most cases, it’s perfectly fine. Such programs has one main thread in the code and it may call various functions one after another or conditionally…the cpu will execute the code in each line of code one after another until the program […]
Queue and Stack Data Structures — Explained
Hi visitors! This post is about explaining the very essential data structures such as Queue and Stacks in a simple way, and provide you with some animations to help. Then I’ll explain how you can implement either data structures in a real-world situation using Python (or any other language, once you understand these fundamentals). I […]