tufts-ml / any_parameter_encoder Goto Github PK
View Code? Open in Web Editor NEWPublic code release accompanying the AABI 2019 paper "Rapid Model Comparison by Amortizing Across Models" by Lily H. Zhang and Michael C. Hughes
License: MIT License
Public code release accompanying the AABI 2019 paper "Rapid Model Comparison by Amortizing Across Models" by Lily H. Zhang and Michael C. Hughes
License: MIT License
Would like to see TimedSVI, TimedMCMC, etc (all approaches) offer a standard interface to getting samples from the learned "q" distribution
def draw_samples_from_normal_approx_posterior(docs, topics, n_samples):
'''
Args
-----
docs : 2d array (n_docs, n_vocab)
topics : 2d array (n_topics, n_vocab)
n_samples : int
Returns
--------
h_SK : 2d array (n_samples, n_topics)
Each row is an unconstrained real vector
Represents draw from q(h_n | x_n, topics)
'''
def draw_samples_from_softmax_normal_approx_posterior(docs, topics, n_samples):
'''
Args
-----
docs : 2d array (n_docs, n_vocab)
topics : 2d array (n_topics, n_vocab)
n_samples : int
Returns
-------
pi_SK : 2d array (n_samples, n_topics)
Each row is a vector on the simplex (non-negative, sums to one)
Represents draw from q(h_n | x_n, topics) that is transformed via softmax
'''
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.