In Data Science, the confusion matrix is a measure of the health of a model. In particular, it helps to measure the performance of a supervised learning model. For this article, I will detail how to create a confusion matrix for a binary classification model both manually and using an sklearn built-in function called metrics.confusion_matrix. … Continue reading Data Science: How to calculate confusion matrix
Author: Chris Nielsen
How to use Git and Github
What is Git? According to the GIT software website: https://git-scm.com/ Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, … Continue reading How to use Git and Github
Ruby on Rails: How to install Ruby on Windows
This article has instructions for installation of Ruby on Windows 10. 1. Go to the Ruby downloads page and click the “Download” button: https://www.ruby-lang.org/en/downloads/ 2. Click the Ruby Installer link which should take you here: https://rubyinstaller.org/ 3. Click the Download button, which leads here: (or skip the first two steps and go straight here!) https://rubyinstaller.org/downloads/ … Continue reading Ruby on Rails: How to install Ruby on Windows
Python and Ruby: A comparison of the language basics
In this table I will compare some basic programming syntax and conventions between the Python and Ruby programming languages. Programming element Python Ruby Commenting code: Both use the pound # sign. # This is a comment # This is a comment Multi-line comments: “”” This is a comment. This is a comment, too. This is … Continue reading Python and Ruby: A comparison of the language basics
JavaScript: How to install JavaScript kernel in Jupyter Notebook
It is possible to run JavaScript (Node.js in REPL mode) in a Jupyter Notebook on a Windows machine. In order to do so, you will need to install the JavaScript (Node.js) kernel. This can be done easily assuming Node.js, npm, and Jupyter Notebook are already installed on your machine. The following instructions are for adding … Continue reading JavaScript: How to install JavaScript kernel in Jupyter Notebook
Data Mining Tools: Row to Array
This article is the second in a series of articles about data mining tools written in Python CGI that make common data mining tasks faster and easier. The first article in the series can be seen here: Data Mining Tools: Column to Array This tool is very similar to the previous tool, except it is … Continue reading Data Mining Tools: Row to Array
Data Mining Tools: Column to Array
I have created some Python tools that make data mining easier. For example, when moving lots of data around one thing that comes up often is getting information from a spreadsheet into a Python data container such as a list. This can be done by adding some code in a Python script to open an … Continue reading Data Mining Tools: Column to Array
Python: How to build a dictionary with two lists using zip( )
If you have two lists and would like to build a dictionary where one list will be the keys and the second list will be the values, Python has a way to do this easily using the built-inzip() function. With small enough examples, we could build our dictionary manually by typing it at the keyboard. … Continue reading Python: How to build a dictionary with two lists using zip( )
p5.js: How to build a clock
In this article, I will show how to build a clock using p5.js, step by step. Here is what the final result looks like: Step 1: Create a square canvas with an origin point When you create a new p5.js sketch in the Processing IDE, you start with empty setup() and draw() functions. For example: … Continue reading p5.js: How to build a clock
p5.js: Understanding circles
To understand how to code with circles in p5.js, it is necessary to have a foundation of knowledge about the parts of a circle and how they map to code. The first mapping is the name. Circles are actually called ellipses in p5.js and are produced using the ellipse() function, that takes in four (or … Continue reading p5.js: Understanding circles