def modify(self, vals):
self.vals = vals.view(np.ndarray).copy()<EOL>y = self.model.predict(self.vals)[<NUM_LIT:0>]<EOL>self.data_visualize.modify(y)<EOL>self.latent_handle.set_data(self.vals[<NUM_LIT:0>,self.latent_index[<NUM_LIT:0>]], self.vals[<NUM_LIT:0>,self.latent_index[<NUM_LIT:1>]])<EOL>self.axes.figure.canvas.draw()<EOL>
When latent values are modified update the latent representation and ulso update the output visualization.