Data Pipelines with TensorFlow Data Services Week 1

train_data = nptrain_data.map(my_one_hot)
val_data = val_data.map(my_one_hot)

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?

Shouldn’t

val_data = val_data.map(my_one_hot)

be

val_data = npval_data.map(my_one_hot)

Hi!

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.