Tensorflow_introduction - Exercise 3 - one_hot_matrix

Glad you fixed, it @mikepang98.

I think it’s not the first time I’ve seen this problem. In case others encounter it, the function header for one_hot_matrix read:

def one_hot_matrix(labels, depth):

Instead of:

def one_hot_matrix(label, depth=6):

So when it gets called by map with a single argument, it raises the error:

TypeError: tf__one_hot_matrix() missing 1 required positional argument: ‘depth’

Enjoy the rest of the course :slight_smile:

3 Likes