Overview

  • My project is an employment predictor which takes inputs such as the applicant’s education level, employment, gender, years coded, and years coded pro and predicts if they will get the job or not. The model is built on job applicant data from 70,000 people and if they were accepted or not. These jobs were software/computer science related. This relates to my CPT project which was a job finder that connected freelancer and employers because it predicts if that person will get the job or not.

YouTube Demo

Here is a demo of the project

CSV Data

CSV Data

  • This is an example of what the CSV data looks like. There are some categories that are dropped like age, accessibliy, mainbranch, mentalhealth, country, previoussalary, hvaeworkedwith, and computerskills because they are specific categories that affect the end prediction only a little.

Init

Init

  • The init constructor initializes the dataset by reading the csv, cleaning the data by dropping unnecessary columns, transforming string columns to binary which makes it readable for the computer, and training the dataset with Employed as the target.

Predict Job Function

Predict

  • Since the model is already trained in the initilization, the predict job function will clean the data and predict the probability that the applicant will get the job or not.

API

API

  • The post method is apart of the API which takes the data from the frontend and calls the predict_job function explained above.

Resource

Resource

  • This adds the api resource so that the frontend can call it when fetching