Data Pipelines with TensorFlow Data Services Week 1

train_data =
val_data =

AttributeError: ‘map’ object has no attribute ‘map’

Solution doesn’t work, I can’t use this function!

Hi @Vitalii01 :wave:

Can you please, share more code? How do you create nptrain_data and val_data?


val_data =


val_data =


Why you only put my_one_hot and not lambda x, y: my_one_hot(x, y)?

Many thanks!

Hi @jphenriques. You don’t need lambda wrapper because you are not changing the shape, number, or order of the arguments passed to my_one_hot.