def get_parameters(self, graph=None):
        """Return the model parameters in the form of numpy arrays.

        Parameters
        ----------

        graph : tf.Graph, optional (default = None)
            Tensorflow graph object.

        Returns
        -------

        dict : model parameters dictionary.
        """
        g = graph if graph is not None else self.tf_graph

        with g.as_default():
            with tf.Session() as self.tf_session:
                self.tf_saver.restore(self.tf_session, self.model_path)

                return {
                    'enc_w': self.W_.eval(),
                    'enc_b': self.bh_.eval(),
                    'dec_b': self.bv_.eval()
                }
Return the model parameters in the form of numpy arrays.

        Parameters
        ----------

        graph : tf.Graph, optional (default = None)
            Tensorflow graph object.

        Returns
        -------

        dict : model parameters dictionary.
        
yadlt/models/autoencoders/denoising_autoencoder.py