computer screen showing histogram

Graphing using Python and Matplotlib

In this article I will introduce you to graphing in python using matplotlib. There are many kinds of charts you can use with matplot lib. By the end of this article, you should understand how to draw basic bar, line, and scatterplot charts. As you go through each of the example charts, you will see there are two arrays. These arrays are for the X and Y axis. And will sometimes include labels for the values on the chart. Prerequisites Before you get started, you will need to install the prerequisites. Read more […]

old black pickup truck

Building a classifier using Python and Scikit Learn

Scikit Learn is an easy to use Machine Learning library for Python. In this article, we will discuss how to create a basic classifier application where you can feed it data, and it will properly classify it for you. In this case we will use data on cars and classify them as Sedans, Pickup Trucks, or Mini Vans. Prerequisites Before we begin, you should be sure that you have pip and python installed. If you do not, check out the article on python basics. The article on Python basics starts off Read more […]


Python Basics – Getting started with Python

In this article, we will cover python basics. We will discuss what is python, where you can download python from, the basic syntax of python, how to input and output information in and out of your python scripts, how to do loops, conditional operators (if/else/elif), and how to write basic functions. What is Python? Python is a cross platform interpreted programming language that was introduced in 1989. The great thing about Python is that it is cross platform. You can run your basic Python applications Read more […]

lightup arrows pointing to the right

Python Switch Statements

In languages like C, you have Switch statements allowing you to evaluate the input, then have a few options for the output.  Switch statements are used in place of a series of if/else statements in order to make your code more readable.  Case statements can also have better performance than a traditional if/else setup.  This is because if you have a bunch of if statements, the system will have to evaluate all of the if statements at the time of execution.  However, with a case statement, it is Read more […]

sign with arrows pointing to the right and left

Python If, Else, and Else If conditional statements

Conditional statments are a large part of writing computer programs and switches. You want to take some sort of input, evaluate it, then take some action based on what the input was. The decision you make about what to do is called a conditional statement. The first conditional statement we will look at is an if statement as shown below.

  The above script gives X a value of 1. It then evaluates X and prints Higher if X is larger than 2. There is then a Read more […]

blue swirly wire or plastic

Python For loops and While loops

Python like all other major programming languages support both For and While loops for running the same block of code over and over again. In this article I will discuss the difference between a python for loop and a while loop. Generally the difference between the two kinds of loops is that you declare and initialize the loop and variables at the same time with a for loop. Whereas with a while loop, you declare the variables first, and then the wile loop separately. The most simple while loop Read more […]

closeup lady wearing sun rainbow glasses

Face and Object Detection using Python and OpenCV

For those who want to do object or face detection, the standard way to do it is with OpenCV. OpenCV is a programming library for Object recognition and is very flexible. You can train it to recognize any number of different objects. For the purpose of this tutorial, I will be using Python3. However, you can use other programming languages with OpenCV as well.PreRequisites1. PipPip is not nesicarily a prerequisite. But it makes it a lot easier. Below are instructions on how to install Pip on OSX, Read more […]

lightbulb on whiteboard

Getting OSX ready for Tensorflow

This article will describe the process of getting Tensorflow working on OSX.  By the end of the article, you will have all the prerequisites installed to allow you to run Tensorflow-based python applications on your MacOS/OSX computer. Install Homebrew Homebrew is a package manager for OSX.  It is similar to apt-get on Ubuntu or yum on Redhat linux.  Homebrew requires xcode to be installed. If you do not already have xcode to be installed, the install command below will install it for you. Read more […]