This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.neighbors import KNeighborsClassifier | |
from sklearn.metrics import roc_auc_score | |
train auc=[] | |
cv_auc=[] | |
K=[i for i in range(50,5)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Implement KNN | |
from sklearn.neighbors import KNeibhorClassifier |