「ベイズ確率」「事前確率」「事後確率」という用語がなんとなくピンとこない人に
すべての確率モデルは主観的なものであり、 したがって確率も主観的な数値である。
たとえば、コインを投げて表が出る確率を考えてみよう。
| #!/usr/bin/env python | |
| # mckick.py - Minecraft kick server | |
| # | |
| # usage: | |
| # $ python mckick.py 'server maintenance!' | |
| # | |
| import sys, struct, socket | |
| def main(argv): | |
| args = argv[1:] |
| ### Keybase proof | |
| I hereby claim: | |
| * I am euske on github. | |
| * I am euske (https://keybase.io/euske) on keybase. | |
| * I have a public key ASB-WZHzfT8Q3qyqWR4buSinp6Z7U_Or-8Shvi45aPmA4wo | |
| To claim this, I am signing this object: |
| import pygame | |
| def set_gamma(img, gamma): | |
| buf = img.get_buffer() | |
| gmap = bytes( min(255, int(255*pow(i/255, gamma))) for i in range(256) ) | |
| buf.write(buf.raw.translate(gmap), 0) | |
| return | |
| img = pygame.image.load("in.jpg") | |
| set_gamma(img, 0.5) |
| <!DOCTYPE html> | |
| <meta charset="utf-8" /> | |
| <title>Euske's Color Scheme</title> | |
| <body> | |
| <h1>Euske's Color Scheme</h1> | |
| <table> | |
| <tr> | |
| <td>Low contrast</td> | |
| <td bgcolor="#ffbbff"><code>#ffbbff</code></td> | |
| <td bgcolor="#aaaaff"><code>#aaaaff</code></td> |
| [Background] | |
| ImageFile= | |
| MaskFile= | |
| OverlayFile= | |
| [Options] | |
| HandsImage= | |
| ShowMajorTicks=0 | |
| ShowMinorTicks=0 | |
| ShowTickNumbers=0 | |
| ShowCaption=1 |
| #!/usr/bin/env python | |
| # | |
| # Download Slack channel histories. | |
| # | |
| # Prerequisites: | |
| # 1. Create a Slack app. | |
| # 2. Give the app the following OAuth & Permissions: | |
| # channels:read, channels:history, users.profile:read | |
| # 3. Install the app & get OAuth token: | |
| # "xoxp-..." |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef int T; | |
| typedef struct { | |
| T* objs; | |
| size_t nobjs; | |
| size_t maxobjs; |
(OpenSSL is written by monkeys)
Marco Peereboom, 2009年
原文: https://www.peereboom.us/assl/assl/html/openssl.html
日本語訳: 新山 祐介