Skip to content

A Recruitment bot that uses K-Nearest Neighbors Algorithm to determine whether you should hire the applicant or not

Notifications You must be signed in to change notification settings

BatuhanSeremet/knn-recruitmentbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knn-recruitmentbot

A Recruitment bot that uses K-Nearest Neighbors Algorithm to determine whether you should hire the applicant or not

It uses the data in sample_data.txt as sample to find the older applicants with scores near to new applicant.

Candidate.java

Candidate class with scores(social, algorithm, gpa, age) out of 5 and hired( 1 for hired, 0 for not hired). It also has a distance property that will be objects Euclidean distance to new applicant's scores.

Program.java

It takes scores of the candidate and k number for k-nearest neighbors algorithm from user, calculates the Euclidean distance of each applicant's score.

Then it sorts the applicants by Euclidean distance to new candidate with merge sort, searches the k-nearest neighbors and if more than half of that applicants are hired, it hires the new applicant.

AccuracyTest.java

It tests the accuracy of the program by executing the program on each applicant from the sample data. In this case, accuracy was 99.8% .

About

A Recruitment bot that uses K-Nearest Neighbors Algorithm to determine whether you should hire the applicant or not

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages