'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.'

def get_parameters(self, graph=None):

    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()}
