def plot_beta(self, beta_samples):
    beta_samples_array = np.asarray(beta_samples)
    for k in range(self.K):
        beta_k_samples = beta_samples_array[:, (k * self.J):((k + 1) * self.J)]
        plot_traceplots(beta_k_samples, self.context.covariates_names)
        plt.show()
def plot_beta(self, beta_samples):
    beta_samples_array = np.asarray(beta_samples)
    for k in range(self.K):
        beta_k_samples = beta_samples_array[:, (k * self.J):((k + 1) * self.J)]
        plot_traceplots(beta_k_samples, self.context.covariates_names)
        plt.show()