Giter Site home page Giter Site logo

pet-adoptionspeed's Introduction

DATS6501 Capstone Project

The purpose of this project is to demonstrate data mining techniques, visualization, and Natural Language Processing (NLP) using the metadata of pet adoption from the Kaggle website for pet adoption speed prediction and trends. Visualization focused on the following data: age scaled in months, cat or dog, colors of pet, gender, maturity size, fur length, whether vaccinated or dewormed or sterilized, any injury, top 5 breeds of cat and dog separately, name, and adoption speed. NLP Modeling focused on the following data: description of pets and adoption speed. Multinomial Naïve Bayes Classifier correctly assessed the adoption speed based on descriptions of pets with 35% accuracy. The ensemble method to find the best Random Forest model with 2-Grams vectorizer and TF-IDF vectorizer also applied. The Random Forest Classifier predicted adoption speed based on descriptions with 45% of accuracy. Finally, the limitation and further improvements are provided, and the review of results is extracted.

The pet adoption data page: https://www.kaggle.com/c/petfinder-adoption-prediction/data

The information page: https://juew72.github.io/pet-adoptionspeed/

Running the code

  • Python 3

    • Packages used in this project:

    • Pandas

    • numpy

    • matplotlib

    • plotly

    • seaborn

    • wordcloud

    • scipy.misc

    • re

    • random

    • nltk

    • use nltk.downloader() after installation finished to install packages: stopwords; punkt; wordnet

    • gensim

    • sklearn

    • string

  • There are four python files, run it based on order as follow:

  • Data Cleaning.ipynb: clean the row data downloaded from Kaggle

  • Visualization.ipynb: include plotly visualizations and word cloud

    • Tableau visualizations are included inside Visualization folder.

    • Plotly visualization are ploted in python script

    • D3 visualizations are two HTML files: gender-dog.html and gender-cat.html

  • NLP.ipynb: include natural language processing

  • nlp2.py: ensemble model code. Need to connect to AWS or GCP or it will take an hour to run the code.

  • The code also published on Zenedo: https://zenodo.org/record/2651913#.XMKgVZNKh24

pet-adoptionspeed's People

Contributors

juew72 avatar kerchner avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.