0

For example, in pandas DataFrame and Series, I can replace 0s with 0.00001 by doing this:

df[df['C']==0]['C'] = 0.00001

Now in TensorFlow, I have a n * 1 tensor, I also would like to replace all 0 values with 0.00001. How can I do this?

CyberPlayerOne
  • 2,700
  • 3
  • 25
  • 47

0 Answers0