{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "8217aab9-32bf-4b68-b068-be79ce5c1bd3", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'/home/nithin/data2/nithin/anaconda3/bin/python'" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import sys\n", "sys.executable" ] }, { "cell_type": "code", "execution_count": 2, "id": "65e54978-601d-481f-a4ec-3604a25e1bd7", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import os" ] }, { "cell_type": "code", "execution_count": 3, "id": "7b55f057-0f69-43a8-9585-c745c77be8d4", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Destination Port | \n", "Flow Duration | \n", "Total Fwd Packets | \n", "Total Backward Packets | \n", "Total Length of Fwd Packets | \n", "Total Length of Bwd Packets | \n", "Fwd Packet Length Max | \n", "Fwd Packet Length Min | \n", "Fwd Packet Length Mean | \n", "Fwd Packet Length Std | \n", "... | \n", "min_seg_size_forward | \n", "Active Mean | \n", "Active Std | \n", "Active Max | \n", "Active Min | \n", "Idle Mean | \n", "Idle Std | \n", "Idle Max | \n", "Idle Min | \n", "Label | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "80 | \n", "68855579 | \n", "10 | \n", "6 | \n", "1038 | \n", "11595 | \n", "346 | \n", "0 | \n", "103.800000 | \n", "167.133879 | \n", "... | \n", "32 | \n", "998.0000 | \n", "0.0000 | \n", "998 | \n", "998 | \n", "6.830000e+07 | \n", "0.0000 | \n", "68300000 | \n", "68300000 | \n", "DoS Hulk | \n", "
1 | \n", "53 | \n", "196 | \n", "2 | \n", "2 | \n", "70 | \n", "174 | \n", "35 | \n", "35 | \n", "35.000000 | \n", "0.000000 | \n", "... | \n", "32 | \n", "0.0000 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "0.000000e+00 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "BENIGN | \n", "
2 | \n", "123 | \n", "118 | \n", "2 | \n", "2 | \n", "96 | \n", "96 | \n", "48 | \n", "48 | \n", "48.000000 | \n", "0.000000 | \n", "... | \n", "20 | \n", "0.0000 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "0.000000e+00 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "BENIGN | \n", "
3 | \n", "80 | \n", "295657 | \n", "7 | \n", "10 | \n", "1114 | \n", "15841 | \n", "1084 | \n", "0 | \n", "159.142857 | \n", "407.829796 | \n", "... | \n", "20 | \n", "0.0000 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "0.000000e+00 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "BENIGN | \n", "
4 | \n", "80 | \n", "15705351 | \n", "7 | \n", "5 | \n", "407 | \n", "452 | \n", "377 | \n", "0 | \n", "58.142857 | \n", "140.620563 | \n", "... | \n", "20 | \n", "360718.0000 | \n", "0.0000 | \n", "360718 | \n", "360718 | \n", "9.767208e+06 | \n", "0.0000 | \n", "9767208 | \n", "9767208 | \n", "BENIGN | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
1783351 | \n", "41272 | \n", "98689782 | \n", "8 | \n", "5 | \n", "11595 | \n", "327 | \n", "5792 | \n", "0 | \n", "1449.375000 | \n", "2046.673464 | \n", "... | \n", "32 | \n", "13859.0000 | \n", "0.0000 | \n", "13859 | \n", "13859 | \n", "9.860000e+07 | \n", "0.0000 | \n", "98600000 | \n", "98600000 | \n", "BENIGN | \n", "
1783352 | \n", "443 | \n", "90956783 | \n", "63 | \n", "77 | \n", "1041 | \n", "135313 | \n", "373 | \n", "0 | \n", "16.523810 | \n", "68.018939 | \n", "... | \n", "32 | \n", "198255.7778 | \n", "362537.3486 | \n", "1165022 | \n", "77291 | \n", "9.908053e+06 | \n", "290822.6482 | \n", "10000000 | \n", "9132848 | \n", "BENIGN | \n", "
1783353 | \n", "443 | \n", "1241813 | \n", "3 | \n", "3 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0.000000 | \n", "0.000000 | \n", "... | \n", "28 | \n", "0.0000 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "0.000000e+00 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "BENIGN | \n", "
1783354 | \n", "53 | \n", "71509 | \n", "2 | \n", "2 | \n", "78 | \n", "330 | \n", "39 | \n", "39 | \n", "39.000000 | \n", "0.000000 | \n", "... | \n", "32 | \n", "0.0000 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "0.000000e+00 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "BENIGN | \n", "
1783355 | \n", "4306 | \n", "2167 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0.000000 | \n", "0.000000 | \n", "... | \n", "20 | \n", "0.0000 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "0.000000e+00 | \n", "0.0000 | \n", "0 | \n", "0 | \n", "BENIGN | \n", "
1782497 rows × 79 columns
\n", "SpecialClassifierRoutedRandomForest()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
SpecialClassifierRoutedRandomForest()