Code Monkey home page Code Monkey logo

Comments (3)

PythonFZ avatar PythonFZ commented on August 20, 2024 1

It looks like the only shared parameter is n_species in GMNN.__init__, so imho GMNN(Descriptor, MLP) looks better and is probably easier to maintain.
https://github.com/GM-NN/gmnn-jax/blob/ec7f81e6f82b9b934c9e510dcbb05f00d8a5ba62/gmnn_jax/model/gmnn.py#L25-L62

from apax.

M-R-Schaefer avatar M-R-Schaefer commented on August 20, 2024

What do you think, @PythonFZ ?

from apax.

M-R-Schaefer avatar M-R-Schaefer commented on August 20, 2024

This is going to be a bit more involved than I initially thought. haiku requires all Modules to be initialized within an hk.transform. That means a construction like this GMNN(Descriptor, MLP) is not possible.
I think there are two options around this:

  1. ad abstraction on top: Instead of passing the modules directly we could pass around factory classes.
  2. try and see if Flax offers a more elegant solution.

I will investigate these options eventually.

from apax.

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.