Enginius/Python&TensorFlow
numpy append example
해리s
2017. 10. 31. 12:26
posconcat = np.zeros((1, snapbot.NID))
currpos = snapbot.get_currpos()
if posconcat.sum() == 0: posconcat = currpos.reshape((1, -1))
else: posconcat = np.append(posconcat, currpos.reshape((1, -1)), axis=0)