INNER CODE UNIT · Python

F

lzz19980125/awesome-time-series-segmentation-papers · DASSA-master/dassa.py:99

    F = dir_ + FName
    with open(F,'w')as f:
        # f.write('Segmentation :' + '\n')
        # f.write("['Source',")
        for i in ALP_arr:
            f.write("'" + str(float(Y[int(i)][End - 1])) + '-' + str(float(Y[int(i)][End])) + "'" + ',')
        # f.write("'Target']" + '\n')
    f.close()


def Finding_Neigbours(YID, Y, node):
    Neigbours = []
    # YID.remove(node)
    End = len(Y[0]) -1
    E1 = Y[node][End]
    for item in YID:
        B2 = Y[item][End-1]
        if (E1 == B2):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…