AWID notebook


AWID Classification Tool

This tool is created to demonstrate classifcation models built with AWID dataset. By Nikita Moshkov


In [2]:
from ipywidgets import interact, interactive, fixed
import ipywidgets as widgets
from IPython.display import clear_output
from IPython.display import display
from awid_classifier import AWIDClassifier
from tkinter import Tk, filedialog
root = Tk()
root.withdraw()
root.call('wm', 'attributes', '.', '-topmost', True)
clear_output()

In [3]:
isKeras = widgets.Dropdown(
options=[True, False],
description='keras model?:',
)

reducedFeatures = widgets.Dropdown(
options=[True, False],
description='reduced number of features?',
)
display(isKeras)
display(reducedFeatures)


Choose file for analysis here.


In [4]:
model = filedialog.askopenfilename()
print(model)


/home/a/nikita/nest100maxde3xgb.joblib.dat

In [22]:
infile = filedialog.askopenfilename()
print(infile)




In [20]:
classifier = AWIDClassifier(model, isKeras.value, reducedFeatures.value)

In [ ]:
classifier.get_attacks_info_from_pcap(infile)

In [ ]:
classifier.get_attacks_info_from_csv(infile)