Giter VIP home page Giter VIP logo

any_parameter_encoder's Introduction

Any-Parameter Encoder (APE)

Public code release accompanying the AABI 2019 paper "Rapid Model Comparison by Amortizing Across Models" by Lily H. Zhang and Michael C. Hughes.

To view the code used to generate the results and figures, visit the workshop branch.

The ape branch is a work-in-progress refactor of the codebase for future maintainability. We urge viewers to use this branch to understand our work through code.

any_parameter_encoder's People

Contributors

lhz1029 avatar michaelchughes avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

any_parameter_encoder's Issues

Standardize an accessible interface for computing per-document representations

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
	'''

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.