image825×343 13.3 KB

with torch.no_grad():
        output1 = model(((train_x.float(),train_x1.float())))     

        softmax1 = torch.exp(output1).cpu()    
        prob1 = list(softmax1.numpy())
        predictions1 = np.argmax(prob1, axis=1)
        print('Validation accuracy train: {:.4f}%'.format(float(accuracy_score(train_y, predictions1)) * 100))

help me @ptrblck