Sunday, January 29, 2023

## Decision Tree and Prediction (Python)

This is an example of a Decision Tree model (very useful and popular method) to make prediction using the power of Machine Learning…using just a normal PC. Here we predict salary (depedendent variable) by giving various types of criteria (different forks in a decision tree). e.g. What’s the salary of a particular gender, of some […]

## Logistic Regression Example (Excel, Python)

In my previous blog on Sigmoid function, I touched on its usefulness and how it’s used to solve Logistic Regression problems either in binary or multiclass classification scenarios. Be sure to check that out http://flyingsalmon.net/?p=3879 first! In this blog, we’ll be using a dataset containing people’s ages and whether or not they bought life insurance […]

## Bill Gate’s first resume (made public)

Recently, I came across Bill Gates’ first resume from circa 1974 in a Microsoft almni discussions forum. It’s very interesting to see how it was customary to put in the candidate’s number of dependents/children, height, and weight even though it was for a white-collar job. I also find the innocence of some phrases used by […]

## 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, […]

## 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 […]

## Share variables across different modules – Python

There are several ways we can share a variable’s value or multiple variables’ values set across different modules or code files. One of the easiest and efficient way is taking advantage of config module in Python. In this post, I demonstrate exactly how it’s done. Imagine the scenario where you have a python module that […]

## Status, Progress and Micro Animations

With the ubiquitious broadband comes the ability to download, upload, and stream more data than ever before. While the wait for most mundane and typical tasks are greatly reduced over the past two decades coupled with advancement in hardware of devices, and more data being exchanged and processed every microsecond, the need for users to […]

## 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 […]

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 […]