[IT]/python.numpy
numpy.where.3단 논법
givemebro
2020. 4. 23. 14:17
반응형
y=mnist.target.copy()
y=np.where(y==9,1,0)
'''
if(y==9):
y=1
else:
y=0
'''
반응형