Jokes Classification

Avatar
Posted on May 20, 2018

Introduction

There are lots of applications of text classification in the commercial world. For example, in the article: Multi-Class Text Classification with Scikit-Learn,  Susan Li described a Machine Learning method to assign new "Consumer Complaint Narrative" to one of 12 categories.

For this project, I used mostly the same methodology to assign a joke to one of 34 categories (according to the Central Comedy page).

Methodology:

The Details:

We have 34 imbalanced classes.

  • Some Tf-idf term weighting results:

  • Model results:

 

Applying in 5 balanced classes.

 

  • Exploring some Logistic Regression results:
    • The model apparently does not differentiate "money jokes" to  "looking good jokes" very well.
    • "dirty jokes" and "insults jokes" are often classified as "miscellaneous jokes", probably because "miscellaneous jokes" has an ample definition. So i needs more investigation.

Improvements:

Tuning the models parameters properly: as we can see in my git hub, the model are flat.

Finding the appropriate metrics to compare the model’s performance.

 

About Author

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp