-
Notifications
You must be signed in to change notification settings - Fork 2
/
MainSecond.py
34 lines (28 loc) · 967 Bytes
/
MainSecond.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from numpy import *
import numpy as np
import random
import math
import os
import time
import pandas as pd
import csv
import math
import random
def ReadMyCsv(SaveList, fileName):
csv_reader = csv.reader(open(fileName))
for row in csv_reader: # 注意表头
SaveList.append(row)
return
def StorFile(data, fileName):
with open(fileName, "w", newline='') as csvfile:
writer = csv.writer(csvfile)
writer.writerows(data)
return
from SecondRandomShuffle.AssociationMatrix import MyAssociationMatrix
MyAssociationMatrix = MyAssociationMatrix()
from SecondRandomShuffle.RandomListPositiveSample import MyRandomListPositiveSample
PositiveSample, RandomListGroup = MyRandomListPositiveSample()
from SecondRandomShuffle.NegativeSample import MyNegativeSample
NegativeSample = MyNegativeSample()
from SecondRandomShuffle.Segmentation import MySegmentation
Segmentation = MySegmentation()