Giter VIP home page Giter VIP logo

passive-lv-gnn-emul's People

Contributors

dodaltuin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

passive-lv-gnn-emul's Issues

Saving 'z_local' queastion

Dear David:
I want to save the z_local variable to a file. I tried to change the 'sow_latents' of the 'call' function in the 'DeepGraphEmulator' class of file ‘models.py‘ to 'True' after completing the training. Please check the following code.
Thank you very much!
Yours
Siyuan,Lv and Zheng,Duanmu

The following is my saving code:

# Here I have changed : sow_latents: bool = True
def __call__(self, V: jnp.ndarray, E: jnp.ndarray, theta: jnp.ndarray, z_global: jnp.ndarray = None, sow_latents: bool = True):
……….
# only need local representation for real nodes
z_local = z_local[self.real_node_indices]

# Here is my saving z_local code
z_local_np = np.array(z_local)
np.save('z_local_1.npy', z_local_np)

# save value of final learned representation if required for fixed geometry emulator
if sow_latents:
    return z_local

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.