Facebook
From Mammoth Prairie Dog, 9 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 84
  1.  
  2. def readFile():
  3.   data = []
  4.   with open("dbscan_data.txt", 'r') as file:
  5.       for l in file.readlines()[:]:
  6.         s = l.replace("\"","").split(',')
  7.         d = [int(i) for i in s]
  8.         data.append(np.array(d))
  9.   return np.array(data)
  10.