Code Monkey home page Code Monkey logo

nux's People

Contributors

c-j-cundy avatar dependabot[bot] avatar eddiecunningham avatar milescranmer avatar renos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nux's Issues

No module named 'haiku'

Hello,

I was interested to try this library out and run your example notebooks, but I'm running into problems due to not having the haiku module installed. I can't find this on PyPI, is it a publicly available module?

I tried installing from source on the nohaiku branch but it seems it still has references to haiku that cause the code to fail.

Should log determinant be adjusted for some of the flows in affine.py?

For example:

class CenterAndScale(Flow):

def init(self, s):
assert s < 1.0
self.s = s
self.b = (1.0 - s)/2

def get_params(self):
return {}

def call(self, x, params=None, inverse=False, **kwargs):
s = jnp.broadcast_to(self.s, x.shape)
log_s = jnp.log(s)

if inverse == False:
  z = x*s + self.b
else:
  z = (x - self.b)/s

sum_axes = util.last_axes(x.shape[1:])
log_det = log_s.sum(axis=sum_axes)
return z, log_det

The log_det for the inverse should be -log_det.

README example not working

Hi,

Trying this package out as I search for a Flows package in JAX.

I tried the README example but it looks like the Coupling layer moved:

>> import nux
>> nux.Coupling()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-1f67c7aa3b7f> in <module>
----> 1 nux.Coupling()

AttributeError: module 'nux' has no attribute 'Coupling'

What is the updated name for this?

Cheers,
Miles

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.