Giter Site home page Giter Site logo

fraudulent-job-postings's Introduction

Fraudulent Job Postings

Restricted to only install scikit-learn, gensim, and pandas.

The full instructions to this project can be found here.

Project Overview

The Better Business Bureau estimates that each year, 14 million people are exposed to job scams, with $2 billion in direct losses1. Although job scams have been around for a while, fraudulent job postings can be tricky to spot. The dataset provided, contains around 9k job postings, of which 400 are fake.

Goal

This project aims to create a classifier to identify whether a job posting is fake or real.

Grading Metrics

Due to the data imbalance, submissions were ranked by their F1 score and graded accordingly (higher F1 = higher grade). All submissions needed a total runtime no more than 30 minutes.

Data Preprocessing

Cleaned the data with Regex

  1. Combined 'description', 'title', and, 'requirements' columns.
  2. Converted the text to lowercase
  3. Remove punctuation, digits, underscore, single characters, and multiple spaces.

Sent this data to the TfidfVectorizer

  1. Removed Stopwords
  2. Transformed text to feature vectors

Model Training

Implemented AdaBoostClassifier, SVC, SGDClassifer, RandomForestClassifier, and PassiveAggressiveClassifier with both GridSearchCV and RandomizedSearchCV.

For the final model, PassiveAggressiveClassifier outperformed the other classifiers and had matching F1 scores from both tuning algorithms. RandomizedSearchCV was chosen based on its faster runtime.

Outcome

The finished product outperformed all but one of my peers.

F1: 0.81

Total Runtime: ~ 18 seconds

Improvements

Due to the restriction in libraries that could be used, the amount of NLP was limited. Installing other packages such as NLTK, could provide some useful methods to help preprocess the data. Also, the data used for this project was very imbalanced. Using techniques like SMOTE to generate more fraudulent job postings may provide better results.

Footnotes

  1. Baker , C. Steven. 2021, Job Scams, https://www.bbb.org/content/dam/0734-st-louis/job-scams/JOB%20SCAMS%20STUDY%20v5.pdf. Accessed Jan. 2023. โ†ฉ

fraudulent-job-postings's People

Contributors

victorbpeterson avatar

Watchers

 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.