Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bobolike123/NetworkTrafficAnalysis
/ functions
Functions
182 in github.com/bobolike123/NetworkTrafficAnalysis
⨍
Functions
182
◇
Types & classes
17
↓ 1 callers
Function
runAPP
(origin_path,goal_path,divide_ratio)
tools/divideTrainAndValidationSet.py:12
↓ 1 callers
Function
runClassification
:param mode: mode 有picture和data和result三种模式, picture模式将训练结果输出成折线图, result模式将最后一个epoch的结果输出成日志文件 data模式记录每一个epoch的结果并输出成日志文件
testcode/PerformanceAnalysis.py:11
↓ 1 callers
Function
run_USTC_binary
()
tools/tsne_v2.py:94
↓ 1 callers
Function
run_big_data
对某一类数量巨大(比如接近一千万)的种类进行分批次数量统计, 如总数=批次1+批次2+……批次n :param root_path: :return:
tools/PacketNumPerClass.py:40
↓ 1 callers
Function
save_packet_feature
(content, pcap_file_path)
preprocess/4_processPcap.py:82
↓ 1 callers
Function
save_packet_feature
如果处理的数量达到了NUM_PER_CATEGORY,pickle.dump()之并返回False,否则返回True :param content: :param label: :return:
preprocess/6_createInputData.py:120
↓ 1 callers
Function
seach_prob
二分搜索寻找beta,并计算pairwise的prob
tools/TSNE_visual.py:31
↓ 1 callers
Function
set_goal_pcap
(pcapname, sip, dip)
tools/findSpecificPcap.py:6
↓ 1 callers
Function
simpleNet
()
model/CNN_model.py:7
↓ 1 callers
Function
train_model
(model, train_data_generator, validation_data_generator, K=None)
CICIDS2017_6class.py:182
↓ 1 callers
Function
train_model
(model, train_data_generator, validation_data_generator, K=None)
USTC-TFC2016_20class.py:179
↓ 1 callers
Function
train_model
(model, train_data_generator, validation_data_generator,weight_path,K=None)
ISCX2012_LSTM_5class.py:176
↓ 1 callers
Function
tsne
Runs t-SNE on the dataset in the NxD array x to reduce its dimensionality to no_dims dimensions. The syntaxis of the function is Y = tsne.ts
tools/TSNE_visual.py:91
↓ 1 callers
Function
update_confusion_matrix
(confusion_matrix, actual_lb, predict_lb)
ModelPredict.py:28
↓ 1 callers
Function
update_current_index
(update_value)
preprocess/4_processPcap.py:36
↓ 1 callers
Function
writeData
(tp,filename2)
log/logger.py:76
↓ 1 callers
Function
xmlfilter
()
preprocess/2_XMLfilter.py:6
Function
GRUNet
()
model/LSTM_model.py:27
Method
__init__
(self, epochs, modelname, classnum, train_data_dir, validation_data_dir, mode='picture')
Classification.py:20
Method
__init__
(self, originPath, goalPath)
tools/pickSmallDataset.py:37
Method
__init__
(self, origin_path, goal_path)
tools/pickSmallDataset.py:56
Method
__init__
(self, originPath, goalPath)
tools/copyRandomSample.py:21
Method
__init__
(self, origin_path, goal_path, EXTRACT_RATIO=0.2)
tools/copyRandomSample.py:38
Method
__init__
(self, batch_size, path)
tools/sequenceDatasetGenerator.py:12
Method
__init__
(self, model_name)
tools/CallbacksMethod.py:8
Method
__init__
(self,originPath,goalPath)
tools/divideTrainAndValidationSet.py:22
Method
__init__
(self,origin_path,goal_path)
tools/divideTrainAndValidationSet.py:36
Method
__init__
(self,origin_path,goal_path,EXTRACT_RATIO=0.2)
tools/divideTrainAndValidationSet.py:46
Method
__init__
(self)
model/CNN_model.py:42
Method
__init__
(self, model_name='BoBoNet')
model/hybrid_model.py:14
Method
__init__
(self, conv1_filters=32, conv2_filters=64, gru1_units=128, gru2_units=64, kernel_size=3, mod
model/hybrid_model.py:110
Method
__init__
(self, logfile, isspecial)
preprocess/1_XMLParser.py:10
Method
__init__
(self, originPath, goalPath)
preprocess/5_clusteringPcap.py:47
Method
__init__
(self, origin_path, goal_path)
preprocess/5_clusteringPcap.py:66
Function
_create_test_dataset
()
preprocess/6_createInputData.py:163
Function
_create_train_dataset
()
preprocess/6_createInputData.py:155
Function
_create_validation_dataset
()
preprocess/6_createInputData.py:159
Function
binarize
(x, sz=256)
model/CNN_model.py:56
Method
binarize
(self, x, sz=256)
model/CNN_model.py:49
Method
binarize
(self, x, sz=256)
model/hybrid_model.py:98
Method
binarize
(self, x, sz=256)
model/hybrid_model.py:149
Function
binarize_outshape
(in_shape)
model/CNN_model.py:58
Method
binarize_outshape
(self, in_shape)
model/CNN_model.py:52
Method
binarize_outshape
(self, in_shape)
model/hybrid_model.py:101
Method
binarize_outshape
(self, in_shape)
model/hybrid_model.py:152
Method
characters
聪明办法(利用字典),扩展性好 :param content: :return:
preprocess/1_XMLParser.py:86
Function
create_indices
()
tools/word2vec.py:2
Method
createdataset
(self)
tools/sequenceDatasetGenerator.py:115
Function
dataset_generator
带OHE :param packets: :param labels: :param indices: :param batch_size: :return:
CICIDS2017_6class.py:69
Function
dataset_generator
带OHE :param packets: :param labels: :param indices: :param batch_size: :return:
USTC-TFC2016_20class.py:69
Function
dataset_generator
带OHE :param packets: :param labels: :param indices: :param batch_size: :return:
ISCX2012_LSTM_5class.py:68
Function
del_end_file_by_time
(file_path)
tools/pickSmallDataset.py:23
Function
del_end_file_by_time
(file_path)
preprocess/5_clusteringPcap.py:32
Function
draw_CM
(cm, labels_name, title)
ModelPredict.py:228
Function
draw_ROC
因为ROC曲线仅用于二分类任务,而我们传入的label有五种(从0-4)所以还要对label和pred_raw进行一个预处理 思想是,把label==0的标为Neg类,把label==1,2,3,4的标为Pos类 注意,pred_raw是一个5维向量,比如[0.97,
ModelPredict.py:191
Method
endDocument
(self)
preprocess/1_XMLParser.py:150
Method
endElement
(self, tag)
preprocess/1_XMLParser.py:34
Function
example_code
()
tools/tsne_v2.py:133
Function
findpcapname
查找configuration中的字典XML2PCAP,找到XML文件对应的PCAP名 :param logName: :return: 对应的PCAP名
preprocess/ex_findPcap2category.py:99
Function
get_indices
(target_texts)
CICIDS2017_6class.py:124
Function
get_indices
(target_texts)
USTC-TFC2016_20class.py:124
Function
get_indices
(target_texts)
ISCX2012_LSTM_5class.py:123
Function
get_result_binary
(y_true, y_pred)
ModelPredict.py:177
Method
model
现在是v3版本的model :return:
model/hybrid_model.py:122
Function
move_dataset
()
preprocess/4_processPcap.py:134
Function
my_sr
()
preprocess/readPcapFile.py:29
Method
on_epoch_begin
(self, epoch, logs=None)
tools/CallbacksMethod.py:21
Method
on_epoch_end
(self, epoch, logs=None)
Classification.py:308
Method
on_epoch_end
(self, epoch, logs=None)
tools/CallbacksMethod.py:24
Method
on_train_begin
(self, logs=None)
Classification.py:302
Method
on_train_begin
(self, logs=None)
tools/CallbacksMethod.py:14
Method
on_train_end
(self, logs=None)
tools/CallbacksMethod.py:35
Function
parse_pcap
(pcap_file_path)
preprocess/readPcapFile.py:58
Function
run
(path)
tools/PacketNumPerClass.py:12
Function
run
()
tools/tsne_v2.py:10
Method
run
(self)
Classification.py:261
Function
run_USTC
12000组测试数据 :return:
tools/tsne_v2.py:54
Function
run_all
(root_path)
tools/PacketNumPerClass.py:23
Method
startDocument
(self)
preprocess/1_XMLParser.py:19
Method
startElement
(self, tag, attributes)
preprocess/1_XMLParser.py:24
Function
tcp
()
preprocess/readPcapFile.py:18
Function
udp
()
preprocess/readPcapFile.py:9
← previous
101–182 of 182, ranked by callers