You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear Titu Brother,
thank you for the valuable source code that you have provided. Can you please guide me how to predict the ground truth image with weighted ensemble as given the predicted accuracy. I can not figuring out how to predict the ground truth images with weighted ensemble thanks in advance. for the reference of ground truth image prediction i have given the code below. please guide me thanks.
Regards
calculate the predicted image
outputs = np.zeros((height,width))
for i in range(height):
for j in range(width):
target = int(y[i,j])
if target == 0 :
continue
else :
image_patch=Patch(X,i,j)
X_test_image = image_patch.reshape(1,image_patch.shape[0],image_patch.shape[1], image_patch.shape[2], 1).astype('float32')
prediction = (yPred.predict(X_test_image))
prediction = np.argmax(prediction, axis=1)
outputs[i][j] = prediction+1
The text was updated successfully, but these errors were encountered:
Dear Titu Brother,
thank you for the valuable source code that you have provided. Can you please guide me how to predict the ground truth image with weighted ensemble as given the predicted accuracy. I can not figuring out how to predict the ground truth images with weighted ensemble thanks in advance. for the reference of ground truth image prediction i have given the code below. please guide me thanks.
Regards
calculate the predicted image
outputs = np.zeros((height,width))
for i in range(height):
for j in range(width):
target = int(y[i,j])
if target == 0 :
continue
else :
image_patch=Patch(X,i,j)
X_test_image = image_patch.reshape(1,image_patch.shape[0],image_patch.shape[1], image_patch.shape[2], 1).astype('float32')
prediction = (yPred.predict(X_test_image))
prediction = np.argmax(prediction, axis=1)
outputs[i][j] = prediction+1
The text was updated successfully, but these errors were encountered: