We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there
First of all, many thanks for publishing the code.
I am trying to re-run your code (TensorFlow version).
What I did:
I downloaded the CICIDS 2017, unzip the file GeneratedLabelledFlows.zip and get the list of 8 CSV files.
GeneratedLabelledFlows.zip
For each CSV file, I sort them by Timestamp column, then store first 70% of lines to train.csv and last 30% to val.csv
Timestamp
The code:
for i,f in tqdm (enumerate (csv_files)): fname = join ('TrafficLabelling', f) df = pd.read_csv (fname, low_memory=False) df = df.sort_values (by = ' Timestamp') N = df.shape [0] train_filename = 'train/' + f val_filename = 'val/' + f df_train = df[0:int(N*.7)] df_val = df[int(N*.7):] df_train.to_csv (train_filename, index = False) df_val.to_csv (val_filename, index = False)
Then I modify the config.ini and run python main.py (Python 3.8.11)
config.ini
python main.py
I got the following error:
raise ValueError('Expect x to be a non-empty array or dataset.') ValueError: Expect x to be a non-empty array or dataset.
Do you have any idea what did I do wrong?
Many thanks
The text was updated successfully, but these errors were encountered:
@vinhqdang Did you manage to solve the issue?
Sorry, something went wrong.
hi @justussoh , no, I did not
@vinhqdang & @justussoh Did you manage to solve the issue?
No branches or pull requests
Hi there
First of all, many thanks for publishing the code.
I am trying to re-run your code (TensorFlow version).
What I did:
I downloaded the CICIDS 2017, unzip the file
GeneratedLabelledFlows.zip
and get the list of 8 CSV files.For each CSV file, I sort them by
Timestamp
column, then store first 70% of lines to train.csv and last 30% to val.csvThe code:
Then I modify the
config.ini
and runpython main.py
(Python 3.8.11)I got the following error:
Do you have any idea what did I do wrong?
Many thanks
The text was updated successfully, but these errors were encountered: