From the course: Building Recommender Systems with Machine Learning and AI

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Predict political parties of politicians with Keras

Predict political parties of politicians with Keras - Python Tutorial

From the course: Building Recommender Systems with Machine Learning and AI

Predict political parties of politicians with Keras

and play some more with Keras. Make sure you're in the RecSys environment in Anaconda Navigator. And we first need to add the Pandas package to our RecSys environment. So select Not Installed, search for Pandas. Select it and hit Apply to kick off its installation. Then open up your Jupyter notebook and upload the PoliticsExercise.ipynb file from your course materials' DeepLearningIntro folder. Once it's imported, find it in the list and click on it to open it. The house votes data files we need are also included in the course materials. This example is actually an exercise that I want you to try yourself. I'll help you load up this data and clean it up, but after that, I will leave it up to you to actually implement a neural network with Keras to classify these things. So to recap, we will load up some data about a bunch of Congressional votes that various politicians made. And we're going to try to see if we can predict if a politician is Republican or Democrat just based on how…

Contents