David Blei's talk about arXiv:1206.7051 was really awesome today.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| N = 5000 | |
| I_true = np.random.randn(N) | |
| D = I_true[:, None] - I_true[None, :] | |
| I0 = np.zeros_like(I_true) | |
| eta = 1.0 / N # Learning rate. | |
| tol = 1.25e-11 # Error tolerance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/old.html b/index.html | |
| index e17fcfc..1f320f3 100644 | |
| --- a/old.html | |
| +++ b/index.html | |
| @@ -9,10 +9,12 @@ | |
| <link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet"> | |
| <link href="http://twitter.github.com/bootstrap/assets/css/docs.css" rel="stylesheet"> | |
| <link href="http://twitter.github.com/bootstrap/assets/js/google-code-prettify/prettify.css" rel="stylesheet"> | |
| + <link href="ADSASS_applet/jquery-ui-1.9.2.custom.min.css" rel="stylesheet"> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function | |
| import requests | |
| from bs4 import BeautifulSoup | |
| def get_table(fn=u"koi.txt"): | |
| url = u"http://archive.stsci.edu/kepler/planet_candidates.html" | |
| r = requests.get(url) | |
| if r.status_code != requests.codes.ok: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bart | |
| # Initialize a planet. | |
| planet = bart.Planet(r=0.01, a=21.3, t0=3.85) | |
| planet.parameters += [bart.parameters.Parameter(r"$r$", "r"), | |
| bart.parameters.LogParameter(r"$a$", "a")] | |
| # Initialize the star. | |
| ldp = bart.kepler.fiducial_ldp(teff=6438, logg=4.28, feh=0.0) | |
| star = bart.Star(mass=planet.get_mstar(12.4138), ldp=ldp) |
You'll need numpy, matplotlib, emcee, triangle.py and acor to run this example.
Here's the model:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pro autokep_event,event | |
| Widget_Control, event.id, Get_UValue=info | |
| Call_Method, info.method, info.object, event | |
| end | |
Here's what happens if you want to display the progress of the default emcee example from the main documentation page.
