MCPcopy Create free account
hub / github.com/bobolike123/NetworkTrafficAnalysis / __init__

Method __init__

tools/copyRandomSample.py:38–41  ·  view source on GitHub ↗
(self, origin_path, goal_path, EXTRACT_RATIO=0.2)

Source from the content-addressed store, hash-verified

36 # EXTRACT_RATIO = 0.2 每个家族抽取样本的比例 ,0.2表示按照8:2划分训练集和验证集
37
38 def __init__(self, origin_path, goal_path, EXTRACT_RATIO=0.2):
39 self.origin_path = origin_path
40 self.goal_path = goal_path
41 self.EXTRACT_RATIO = EXTRACT_RATIO
42
43 def checkFileisExist(self):
44 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected