return self
def to_ohe(self, labels):
return [np.eye(len(self.label_names))[self.label_names.index(label)] for label in labels]
def layer_op(self, idx=None, shuffle=True):
// def apply_expand_dims(x, n):
After Change
tf.logging.fatal("Unrecognised input format for {}".format(self.path_to_csv))
def to_ohe(self, labels):
label_names = list(set(labels))
return [np.eye(self._dims)[label_names.index(label)] for label in labels]
def layer_op(self, idx=None, shuffle=True):
if idx is None: