Tag: Python
-
How to Evaluate Your Classification Algorithm in Python

In the previous episode, we went over the different methods you can evaluate your classification algorithm. In this episode, we focus on applying these methods in Python. You can view and use the code and data used in this episode here: Link 1. Building the Classification Algorithm First we need to build a classification algorithm…
-
Evaluating your Regression Model in Python

Code and data used can be found here: Repository In the previous episode we discussed multiple methods in which you can evaluate your regression model. At the end of the episode we also discussed a general method which you can apply. This article is split into two parts: Part 1 builds a multiple linear regression…
-
Non-linear Support Vector Machines in Python

Code and data used can be found here: Repository An explanation of Non-linear support vector machines: Episode 9.3 How to set up your programming environment can be found at the start of :Episode 4.3 Objective Produce a non-linear support vector machine that is able to correctly classify a pulsar star. Importing and exploring our Data We have…
-
Linear Support Vector Machines in Python

Code and data used can be found here: Repository An explanation of Non-linear Support Vector Machines: Episode 9.3 Please consider watching this video if any section of this article is unclear. How to set up your programming environment can be found at the start of : Episode 4.3 Objective Produce a linear support vector machine that…
-
Hierarchical Clustering in Python

Code and data used can be found here: Repository Please consider reading Episode 8.1 if you are new to clustering algorithms. An explanation of the Hierarchical clustering algorithm: Episode 8.3 How to set up your programming environment can be found at the start of : Episode 4.3 Objective (We will be working with the same dataset…
-
K-means Clustering in Python

Code and data used can be found here: Repository An explanation of the K-means clustering algorithm: Episode 8.1 Please consider watching this video if any section of this article is unclear. How to set up your programming environment can be found at the start of :Episode 4.3 Objective Place the following data taken from iris plants…
-
Logistic Regression in Python

You can view and use the code and data used in this episode here: Link Consider reading Episode 7.1 before continuing, which explains how logistic regression works. How to set up your programming environment can be found at the start of : Episode 4.3 Objective Predict whether it will rain tomorrow in Albury, Australia given the…
-
Polynomial Regression in Python

Code and data used can be found here: Repository Importing our Data The first step is to import our data into python. We can do that by going on the following link: Data Click on “code” and download ZIP. Locate WeatherDataP.csv and copy it into your local disc under a new file called ProjectData Note: WeatherData.csv…
-
Simple Linear Regression in Python

Code and data used can be found here: Repository From the previous two episodes you should now know the underlying theory of Linear Regression, its purpose and how we use gradient descent in optimising our parameters. You can read them here: Episode 4.1, Episode 4.2 . Setting up your programming environment All programming in this series…