adspace


You can do by using tf.one_hot() function?

Answer Posted / Amit Agarwal

Yes, the tf.one_hot() function in TensorFlow is used for converting categorical data (e.g., labels) into a format that a neural network can understand. It creates an array where each possible category is represented by a binary vector.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the apis outside tensorflow project?

77