Skip to content

Ravjot03/K-Nearest-Neighbors-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

K Nearest Neighbors Project

Description :

In this project, I have built a k-NN Classifier to classify the party affiliation of United States Congressmen based on their voting records.

After training the model, I have calculated model performances.

Also, optimized the classification model with Hyperparamter tuning.

You can also refer to my Blog on Medium. Here is the link ==> Implementation of a k-Nearest Neighbors Model with Python


Data Info :

I have used Congressional Voting Records Dataset from UCI Machine Learning Repository.

This data set includes votes for each of the U.S. House of Representatives Congressmen on the 16 key votes identified by the CQA. The CQA lists nine different types of votes: voted for, paired for, and announced for (these three simplified to yea), voted against, paired against, and announced against (these three simplified to nay), voted present, voted present to avoid conflict of interest, and did not vote or otherwise make a position own (these three simplified to an unknown disposition).


Contents :

  1. Importing the necessary libraries
  2. Importing and Loading the dataset
    • Knowing the dataset
  3. Exploratory Data Analysis (EDA)
  4. Data Preprocessing
  5. Data Modeling
  6. Diagnosing Classification Predictions
    • Confusion Matrix
    • Classification Report
    • ROC Curve
    • Area Under Curve (AUC)
  7. Cross Validation
  8. Hyperparameter Tuning
  9. Grid Search Cross Validation
  10. Conclusion

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published