Пример #1
0
 def __str__(self):
     csv=""
     for i,instance in enumerate(self.X):
         postfix=",#"+str(self.y[i])+"#" + str(self.anno[i])+"\n"
         csv+=tools.to_csv_line(instance)+postfix
     return csv
Пример #2
0
 def __str__(self):
     csv=""
     for instance,label in zip(self.X,self.y):
         csv+=tools.to_csv_line(instance)+",#"+str(label)+"\n"
     return csv