티스토리 뷰

SWDesk

[Python] 배열 내 항목 교체

bizmaker 2021. 2. 25. 20:22

<BStockTrade22.py>

np.replace(array, mask, vals): [Link]

        replaced = testX[:, columnNo].reshape(len(testX), 1)
        np.place(testX, testX==replaced, testY)
        inv_y = scaler.inverse_transform(testX)

 

 

반응형