def plot_tgp_trace(self, trace): self.plot_data(big=True) self.plot_tgp_quantiles(params) # self.plot_tgp_moments(params) self.description['scores'] = self.scores(params) plot_text(self.description['title'], self.description['x'], self.description['y'], loc=1) self._widget_params = params
def plot_tgp_widget(self, **params): params = self.check_params_dims(**params) self._widget_params = params self.plot_data(big=True) self.plot_tgp_quantiles(params) self.plot_tgp_moments(params) #self.description['scores'] = self.scores(params) plot_text(self.description['title'], self.description['x'], self.description['y'], loc=1)
def plot_gp(self, params, title=None, samples=0, big=True, scores=False, loc=1): #if self.space_t is not self.space_x: # plt.figure(0) # self.plot_space() #plt.figure(1) self.plot_data(big) self.plot_gp_moments(params) self.plot_gp_samples(params, samples) if scores: self.description['scores'] = self.scores(params) score_title = 'll_train={:.2f} | ll_test={:.2f}'.format(self.description['scores']['logp_train'], self.description['scores']['logp_test']) else: score_title = '' if title is None: title = self.description['title'] plot_text(title + ': ' + score_title, self.description['x'], self.description['y'], loc=loc)
def plot_model(self, **params): plt.figure(2) _ = plt.plot(self.compiles['covariance'](**params)[len(self.space_x) // 2, :]) plot_text('kernel', 'x1', 'x2') return