code: def posts_draw_visualise(self, n_draws=10, is_graph=True):
      # 1-D only, plot posteriors
      # we currently have data noise included in this, could remove it to get smooth
  
      # sample from posterior
      y_samples_post = np.random.multivariate_normal(
          self.y_pred_mu.ravel(), self.cov_pred, n_draws
      ).T  # mean, covariance, size
  
      # plot priors
      if is_graph:
          fig = plt.figure()
          plt.plot(
              self.x_predict,
              y_samples_post,
              color="k",
              alpha=0.5,
              lw=0.5,
              label="Priors",
          )
          plt.plot(
              self.x_train,
              self.y_train,
              "r.",
              markersize=14,
              label="Observations",
              markeredgecolor="k",
              markeredgewidth=0.5,
          )
          plt.xlabel("$x$")
          plt.ylabel("$f(x)$")
          title = (
              self.kernel_type
              + ", posteriors, b_0: "
              + str(self.b_0_var)
              + ", w_0: "
              + str(self.w_0_var)
          )
          plt.title(title)
          # plt.xlim(-6, 6)
          fig.show()
  
      self.y_preds = y_samples_post.T
  
      y_pred_mu_draws = np.mean(self.y_preds, axis=0)
      y_pred_std_draws = np.std(self.y_preds, axis=0, ddof=1)
  
      # add on data noise
      # do need to add on for GP!
      y_pred_std_draws = np.sqrt(
          np.square(y_pred_std_draws) + self.data_noise
      )
  
      self.y_pred_mu_draws = y_pred_mu_draws
      self.y_pred_std_draws = y_pred_std_draws
  
      return
  
file_path: elu-gelu-kernels/code/experiments/02_shallow_experiments/module_gp_gelu.py
imports: import numpy
  from .utils import *
  from ...kernels.nn_kernel_relu import NNKernelRelu
  from ...kernels.nn_kernel_gelu import NNKernelGelu
  from ...kernels.nn_kernel_lrelu import NNKernelLRelu
  from ...kernels.nn_kernel_elu import NNKernelElu
  from ...kernels.nn_kernel_erf import NNKernelErf
label_desc: Use image node_id 6 for calling the gp_model obj's underlying member method code with example usage: obj.posts_draw_visualise(n_draws, is_graph) without return types