Welcome to Edge-Detect Discussions! #1
Replies: 4 comments 9 replies
-
Good morning! Are you still working on this project? |
Beta Was this translation helpful? Give feedback.
-
Hi , can you please give me a clear instruction what python file I should run? I see generator and recurrent_fast file I got index out of range in generator error the error is in timestep = int(sys.argv[1]) line timestep = int(sys.argv[1]) load datasetdataset = pd.read_csv('training.csv', header=0) for i in range(timestep): split into train and test setstrain = values[:, :, :] split into input and outputstrain_X = train[:, :, :-1] dataset = pd.read_csv('testing.csv', header=0) integer encode directiontest = values[:, :, :] split into input and outputstest_X = test[:, :, :-1] reshape input to be 3D [samples, timesteps, features]print(train_X.shape, train_y.shape, test_X.shape, test_y.shape) np.save("TRAINING_X_" + str(timestep) + ".npy", train_X) np.save("TESTING_X_" + str(timestep) + ".npy", test_X) |
Beta Was this translation helpful? Give feedback.
-
Which version does tensorflow need? |
Beta Was this translation helpful? Give feedback.
-
Hello! Can you elaborate on the pre-processing stage for the dataset? The files I downloaded from the project had 80 features (the last feature being the labels for attacks), but I read in the paper that it was summarized from an initial 49 features to 25. How can I achieve the same dataset? I've tried running the project using the training.csv file and testing.csv file but those appear to have 80 features, reduced to 79 after inputting them on npy_generator.py. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions