code: def image_predict_proba(self, X):
          
  
          pixels = self.extract_pixels(X)
  
          probabilities = self.classifier.predict_proba(pixels)
  
          return probabilities.reshape(X.shape[0], X.shape[1], X.shape[2], probabilities.shape[1])
docs: Predicts class probabilities for the entire image.
  
          :param X: Array of images to be classified.
          :type X: numpy array, shape = [n_images, n_pixels_y, n_pixels_x, n_bands]
  
          :return: classification probability map
          :rtype: numpy array, [n_samples, n_pixels_y, n_pixels_x]