class SimpleBatch(object):
def __init__(self, data_names, data, label_names, label):
self.data =(data)
self.label= label
self.data_names = data_names
self.label_names = label_names
@property
def provide_data(self):
return [(n,x.shape) for n,x in zip(self.data_names, self.data)]
@property
def provide_label(self):
return [(n,x.shape) for n,x in zip(self.label_names, self.label)]
Asked
Active
Viewed 230 times
-2

Devesh Kumar Singh
- 20,259
- 5
- 21
- 40

Sanaa
- 11
- 1
- 6
2 Answers
0
The three lower lines in the init method are not the same at the first line in the method. Your tab spacing needs to be consistent throughout your code.

Andreas G.D Petersen
- 122
- 1
- 1
- 11
0
You accidentally added tabs after "self.data =(data)"
class SimpleBatch(object):
def __init__(self, data_names, data, label_names, label):
self.data =(data)
self.label= label
self.data_names = data_names
self.label_names = label_names
@property
def provide_data(self):
return [(n,x.shape) for n,x in zip(self.data_names, self.data)]
@property
def provide_label(self):
return [(n,x.shape) for n,x in zip(self.label_names, self.label)]

I don't exist
- 21
- 1
- 5