Giter Club home page Giter Club logo

Comments (3)

haorannlp avatar haorannlp commented on August 28, 2024

You can sample from a standard normal distribution directly after training to generate new graphs

from gae.

BerardinoB avatar BerardinoB commented on August 28, 2024

Dear Haorannlp,
as far as i understood,the way in which I can use this model is the following:

  1. emb = sess.run(model.z_mean, feed_dict=feed_dict)
  2. adj_rec = np.dot(emb, emb.T)

Now, the problem is that after training the model, I would like to generate new instances without using any graph as input of the model. In order to do this I need to produce the "emb" and perform the dot product. Now, I cannot figure out how can I obtain this "emb" just by sampling from a strandard Normal distribution. In fact, from the code I see that:

self.z = self.z_mean + tf.random_normal([self.n_samples, FLAGS.hidden2]) * tf.exp(self.z_log_std)

is the part that should be distributed as normal after training. Am I understood correctly?
If the answer is yes and I sample from a normal distribution, I will obtain "z" and not "z_mean". Is that right?

from gae.

haorannlp avatar haorannlp commented on August 28, 2024

Sampling from a standard normal distribution : self.z = tf.random_normal([1, FLAGS.hidden2]). You don't need encoder to generate new graphs, only the decoder is enough.

from gae.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.