def load_dataset(dataset_name):
 data = []
 labels = []
 with open('./data/{0}.tsv'.format(dataset_name)) as ifile:
  for line in ifile:
   tokens = line.strip().split(' DCTB ')
   data.append([float(tk) for tk in tokens[:(-1)]])
   labels.append(tokens[(-1)])
 data = np.array(data)
 labels = np.array(labels)
 return (data, labels)

def load_dataset ( dataset_name ) : data = [ ] labels = [ ] with open ( './data/{0}.tsv' . format ( dataset_name ) ) as ifile : for line in ifile : tokens = line . strip ( ) . split ( ' DCTB ' ) data . append ( [ float ( tk ) for tk in tokens [ : ( - 1 ) ] ] ) labels . append ( tokens [ ( - 1 ) ] ) data = np . array ( data ) labels = np . array ( labels ) return ( data , labels )
load the dataset used by the model .