Research Article
Design and Implementation of an Anomaly Network Traffic Detection Model Integrating Temporal and Spatial Features
Algorithm 4
Get the final data that can be fed into the neural network for training.
| | Input: data [], size, length | | | Output: the final data used for neural network training | | | For i = 0 to data.length do | | | If data[i] ≥ size | | | Count = 1 | | | For j = 0 to size do | | | For k = 0 to length: | | | If k greater than or equal to data[i][j].length | | | Write data to 0 into the .csv file | | | Count +1 | | | Else: | | | Write data[i][j] to the .csv file | | | END if | | | END for | | | END for | | | Else: | | | Count = 1 | | | END for |
|