Aligning Images

Standard

I recently wrote a program to align images using OpenCV in Python. I drew a rectangle with ten dots on it and took pictures of it at different angles. I used the locations where each of the corresponding dots moved to find a homography between the straight picture and each angled picture. I then warped the angled pictures using this homography to align them.

Here is a link to download the folder with the images and Python code in it as well as an image of the output. Make sure to download the whole folder and run the python code from within that folder.

perspective1output.png

 

 

 

 

 

Habitable Exoplanets

Standard

I developed a machine learning Python program that uses a Support Vector Machine classifier from the sklearn module to predict if an exoplanet is in the habitable zone of its star system (the zone where liquid water can exist). The features of the planet required by the classifier to make the prediction are the orbital period of planet in days, number of planets in the system, and number of stars in the system.

I used the astroquery module to obtain the data from the Open Exoplanet Catalog

Link to download Python code

Here are some pictures of the program:

Screen Shot 2017-06-09 at 1.38.30 PM.png

Predicting Intel Revenue

Standard

I wrote a machine learning Python program using the sklearn module that predicts the revenue for Intel Corporation. I got the data for the training set from a website called Quandl that has a wide variety of financial data. I used Ridge regression with a 3rd degree polynomial for my machine learning algorithm.

Link to download Python code

Here is a picture of the output of my program:

Screen Shot 2017-06-06 at 3.58.49 PM.png

Classifying Hydrocarbons

Standard

I developed a machine learning Python program using the sklearn module that classifies a simple single-chain hydrocarbon  into categories based on the type of bonds it has given the number of carbons and hydrogens (alkanes have single bonds, alkenes have double bonds and alkynes have triple bonds).

Although there are easy ways to tell what type of bonds a simple single-chain hydrocarbon has given the number of carbons and hydrogens, I wanted to use a training set and a Linear SVM(Linear Support Vector Machine) to classify them in order to introduce myself to machine learning.

Link to download Python code

Here is a picture of the output of my program:
Screen Shot 2017-06-04 at 4.18.25 PM.png