Skip to content

Instantly share code, notes, and snippets.

View Shareef-shaik's full-sized avatar
🎯
Focusing

Shareef Shaik Shareef-shaik

🎯
Focusing
  • Hyderabad
View GitHub Profile
Implement KNN
from sklearn.neighbors import KNeibhorClassifier
@Shareef-shaik
Shareef-shaik / knn.py
Created April 12, 2020 13:24
This file includes the code related to KNN
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import roc_auc_score
train auc=[]
cv_auc=[]
K=[i for i in range(50,5)]
#import necessary packages
import time
from selenium import webdriver
import pandas as pd
import matplotlib.pyplot as plt
#create an instance of browser
driver = webdriver.Chrome()
#creating a dictionary for storing the information after scraping