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
def __str__(self): csv="" for instance,label in zip(self.X,self.y): csv+=tools.to_csv_line(instance)+",#"+str(label)+"\n" return csv