Skip to content

knitemblazor/vulnerable-and-non-vulnerable-websites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

vulnerable-and-non-vulnerable-websites (Deprecated)

Classification task using KNN classifier

The repo includes the following:

data.csv - It includes the hyperlinks of various trusted and non trusted websites

knn.ipynb - It is a python notebook the includes the approach used

APPROACH

The approach used here is to first convert the hyperlinks into vectors.For doing this we use gensim's Word2Vec library. Hyperlinks are converted and the feature matrix is obtained which is padded with zero values as the length of the hyperlinks may not be the same.After this the feature matrix is fed into the KNN classifier, the one supplied with the sklearn package.

ACCURACY

Here the accuracy obtained is calculated by taking the percentage of correctly classified instances with respect to the total no. of instances.

About

Classification task using KNN classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published