Load and pre-process NSL KDD data set

0 votes

since I am a newbie in python programming and I want to load the data according to the table of the article but I don’t know how to can do categorical training and testing the NSL_KDD dataset into(‘normal’, ‘dos’, ‘r2l’, ‘probe’, ‘u2r’).

image

I’ve reviewed a lot of code in GateHub to pre-process the NSL_KDD data set to categorize into five groups(‘normal’, ‘dos’, ‘r2l’, ‘probe’, ‘u2r’), but I still haven’t been able to find the code to do it right.
Can anyone help me? I really need help.

May 27, 2020 in Python by arezoo
• 220 points
1,367 views

Hi, @Areezo,

 I would suggest you use Google Colab, try to run it. Install spark on ubuntu:

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Python

0 votes
1 answer
0 votes
1 answer

i am normalizing the data set iris in python and get the error ::TypeError: 'numpy.float64' object is not callable

TRY THIS   #Nomalisation for i in names:     print(i)   ...READ MORE

answered Aug 20, 2019 in Python by Noel Deepak Palle
5,904 views
0 votes
1 answer

Python set Union and set Intersection operate differently?

When you do set() you are creating an empty ...READ MORE

answered May 24, 2018 in Python by charlie_brown
• 7,720 points
1,018 views
0 votes
1 answer

What are the naming conventions for variables and data types in python?

There are certain rules that we have ...READ MORE

answered May 21, 2019 in Python by Mohammad
• 3,230 points
2,076 views
0 votes
1 answer

How to install Python on Windows and set path variable?

Install python from this link https://www.python.org/downloads/ After ...READ MORE

answered May 24, 2019 in Python by anonymous
• 180 points
2,713 views
0 votes
1 answer

How to set NotebookApp.iopub_data_rate_limit and others NotebookApp settings in JupyterHub?

Open the command line and enter jupyter notebook ...READ MORE

answered Jun 10, 2019 in Python by SDeb
• 13,300 points
13,074 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,434 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,070 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP