96 karma · joined Jul 24, 2011 (15y ago) · 48 submissions
comment 7mo ago · link · parent
I haven't worked these all the way through, but I'm slightly skeptical or at least confused by a few details:
1. Another way to frame P(D|B=b) would be to have the old vs new side draws be beta-binomial distributed, in which case we should then have binomial coefficients for each of the draw side probabilities for the number of possible orderings of the observations. Do they end up cancelling out somewhere? [ed: Oh yes, of course -- D includes that in each case we observe exactly one of the C(n,k) orderings.]
2. I think your expected conditional entropy code is treating the imputed new observations as independent from the past observations, though even if that's the case it may not affect it much in this model. If it does though, it might be worth explicitly unit-testing the naive vs efficient calculations to ensure they match.
Anyway, thanks for sharing!
comment 8y ago · link · parent
3.
Does It Beat the Minimal Standard? [for a PRNG](pcg-random.org ↗)
2 points · by llasram · 8y ago · discuss
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
I look forward to reading this book when finished and hope they find success with this presentation of the core ideas. As a practitioner I see a fair amount of "I have a hammer; now I just need this problem to be a nail" type thinking with regard to using off-the-shelf techniques.
In the intro to this book the authors have an example with Kalman filters. A similar example is how Latent Dirichlet Allocation (LDA) is treated by different communities. In a certain chunk of the CS-dominated topic-modeling literature and in the data science blogosphere LDA is this recieved atomic technique; a black-box tool for modeling documents. In the Stan manual, it is one fairly boring example of a mixture model, only worth talking about explicitly because so many people ask about it.
comment 9y ago · link · parent
comment 10y ago · link · parent
I find that this is a theme which runs through a number of Chiang's stories. If you haven't read it, you might find "Exhalation" interesting: http://www.lightspeedmagazine.com/fiction/exhalation/ . You may also find it nihilst, but makes the positive, celabratory element even more explicit.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
I'd personally add the potentially controvertial "prefer transducers to lazy sequences." Lazy seq laziness is a big source of errors for newbies, and even for old hands since 1.7 Iterable-backed lazy seqs have surprising chunked realization behavior. Transducers take a bit more up-front effort to gain familiarity, but then yield fewer surprises.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Clojure transducers are different because a transducer is a function which accepts a reducing function and returns a new reducing function, adding behavior by how the input function is composed into the result function. Because the domain and range of transducers are both reducing functions, they can be chained through function composition. A chain is actually applied by transforming a reducing function then using that function to `reduce` (Rust `fold`) a collection.
The cool part is that the transformations don't refer to collections at all, not even through some highly abstract collection-like interface. This makes them applicable to other domains, like the previously-mentioned channels.
comment 10y ago · link · parent
Transducers separate out the transformation processes into free-standing composable functions. This makes the transformations first-class values, and makes it possible to apply such transformations to less collection-like entities such as async channels.
I'm personally still not sure if it's a good idea or not, but it is an interesting approach.
comment 10y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
My current assessment is that J combines the powerful computational primitives of a language designed by a brilliant applied mathematician with the FFI & I/O interfaces of a language designed by a brilliant applied mathematician. Writing purely algorithmic code feels like writing executable math in ASCII. Writing code which needs to interact with the outside system feels like programming an 80’s 8-bit microcomputer in BASIC.
I have not yet learned APL or K, so I cannot yet compare and contrast.
* Edited to add: most useful for me so far has been the book J for C Programmers bundled with the official documentation. It mostly takes the tack of expecting that you already know how to program and want to know how to do certain things you can do in other languages in J. Additionally the final section on "tacit programming" includes some details on the implementation which made some of the more obscure behaviors of the language more clear.