OSCR

Block oscr:b:ACW0KDH7RXZRD-Q

A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON

Identifier
oscr:b:ACW0KDH7RXZRD-Q
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1371/journal.pcbi.1012532 · its page here
Code
github.com/gaspardol/montecarlopredictivecoding, figure_2.py, lines 299 to 430 (comparison_ideal_observer)
Commit read
fa98a62a544561a0b2297779338ef1f99a60d406
SWHID
swh:1:cnt:5da46cd74876b73158820467017885491366cab0;origin=https://github.com/gaspardol/montecarlopredictivecoding;anchor=swh:1:rev:fa98a62a544561a0b2297779338ef1f99a60d406;path=/figure_2.py;lines=299-430 (the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)
In the paper
paragraph 37 (2 Results › 2.2 MCPC infers posterior distributions); paragraph 138 (4 Methods › 4.2 Learning tasks › 4.2.2 MNIST learning task)
Linked by
the registry's matching program (lexical-v1), which can be wrong
Identifier given
2026-11-14

Open these lines beside the paper

Cite this block

Copy this text: the identifier and its page first, then the code, the paper and the SWHID.

Code block oscr:b:ACW0KDH7RXZRD-Q (https://openscicode.org/b/oscr:b:ACW0KDH7RXZRD-Q)
figure_2.py, lines 299 to 430, in github.com/gaspardol/montecarlopredictivecoding (https://github.com/gaspardol/montecarlopredictivecoding), commit fa98a62a544561a0b2297779338ef1f99a60d406.
Paper: https://doi.org/10.1371/journal.pcbi.1012532
SWHID: swh:1:cnt:5da46cd74876b73158820467017885491366cab0;origin=https://github.com/gaspardol/montecarlopredictivecoding;anchor=swh:1:rev:fa98a62a544561a0b2297779338ef1f99a60d406;path=/figure_2.py;lines=299-430