information-fusion-lab-umass / nux Goto Github PK
View Code? Open in Web Editor NEWNormalizing Flows using JAX
Normalizing Flows using JAX
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.