Pyth (no built-in compression), score 4695.07 46564656.03 4444.0382
The current network is built from 45 sigmoid neurons, with each neuron connected to the x, y inputs and to every previous neuron, and the last three neurons interpreted as r, g, b. It’s trained using the Adam algorithm without batching. The parameters weighting the 1125 connections are quantized to a range of 11193 possible values (except the constant terms, which have 932 possible values) using a variant of stochastic quantization (the, the primary variation being that we set the gradient for quantized parameters to zero).
10241023 bytes, encoded with xxd
(decode with xxd -r
). I used the 2016-01-22 version of Pyth that was current when this challenge was released. You can run the code directly in Pyth, but Pyth in PyPy3 (pypy3 pyth starry.pyth
) runs it nine times faster, in about 3 minutes. The output image is written to o.png
.
00000000: 4b6a 7943 2205 2816 9967 c2f8 84f9 3569 KjyC".(..g....5i 00000010: c7d4 ec44 d654 6d9b 244f a8b9 c34d 55c3 ...D.Tm.$O...MU. 00000020: 105b b089 4a6b 2a74 3b4e 1e0b c6a3 2fc5 .[..Jk*t;N..../. 00000030: 525c 72af 238c b0a4 ffb8 70d4 ce43 5c47 R\r.#.....p..C\G 00000040: 59fe b248 4203 f475 3d16 1161 8724 1e0c Y..HB..u=..a.$.. 00000050: 9038 180a adc8 dd9c 1273 a453 8660 4cf1 .8.......s.S.`L. 00000060: e959 e66d 06db 8565 d1b3 a777 8e7c bc74 .Y.m...e...w.|.t 00000070: b42c 67e6 960c a876 be8e 6668 6f48 94e9 .,g....v..fhoH.. 00000080: f394 f731 6897 f126 b112 e83f 1652 0e4f ...1h..&...?.R.O 00000090: 10d6 5783 0b06 66e7 0a6d ea4e c229 f993 ..W...f..m.N.).. 000000a0: aef5 ceae 6c0b 155c 2204 ef26 def6 a987 ....l..\"..&.... 000000b0: 7834 c294 51ec a66a 95b9 f099 e0e3 07d1 x4..Q..j........ 000000c0: 8e88 c056 abd9 67d0 cd75 2681 6fc0 f0ad ...V..g..u&.o... 000000d0: 520f 4bb0 ed8a 8d81 d5ef 95fe 35d6 d310 R.K.........5... 000000e0: 5d47 a578 20cb 33f8 f248 c203 0a23 caba ]G.x .3..H...#.. 000000f0: 0649 f3e1 98c2 0c7b 4f64 0773 c153 dbe0 .I.....{Od.s.S.. 00000100: 507b f92d 513b 79d7 7d4d 3402 1c5d 34d9 P{.-Q;y.}M4..]4. 00000110: d52d 2174 4709 996d 5c86 413a 1acd 9303 .-!tG..m\.A:.... 00000120: 9432 d79d 715b 9667 af48 c987 6f8c f9e3 .2..q[.g.H..o... 00000130: 8c35 6af8 37ce cc71 601e 9dea 7892 057c .5j.7..q`...x..| 00000140: 454b 865a 4fcb 8c46 bb1e 3aab 4d68 875c EK.ZO..F..:.Mh.\ 00000150: 22fe a206 0cba beaf 8c4d ac09 13c4 bd14 "........M...... 00000160: 6b20 a347 ff8e 98f1 e2c0 80a0 a87b ac6c k .G.........{.l 00000170: ce73 2c6b 0306 ac08 ea4a 8ecc 6b7c 7e24 .s,k.....J..k|~$ 00000180: c351 8d83 32a1 c1ff 9a4d 72d4 b113 6e4c .Q..2....Mr...nL 00000190: c279 fb94 83ed 78d5 a4e7 1295 7f0b c6b7 .y....x......... 000001a0: 9a37 638e 15be 8af0 aca0 1230 30db 7a57 .7c........00.zW 000001b0: 7a81 8bfa a0aa 98b6 3ea2 d5b9 11bd b5ef z.......>....... 000001c0: e06f 89fd f290 d099 794b 8af0 54e6 54b9 .o......yK..T.T. 000001d0: d3bf 4f49 ce8f 3684 fe90 b366 4ac8 9300 ..OI..6....fJ... 000001e0: 4a3f 5bbc 1eb3 4b41 782c fd20 47e2 97b0 J?[...KAx,. G... 000001f0: 97ca 0e62 f651 ef20 d80c bdc3 a888 64b8 ...b.Q. ......d. 00000200: fde1 c066 d8d0 5c72 c811 50cb 4679 fdab ...f..\r..P.Fy.. 00000210: 0f78 081c 2548 0bc0 57e9 69a2 c357 bc76 .x..%H..W.i..W.v 00000220: b404 037a 8e3b d216 7aa3 67e7 19f1 9e84 ...z.;..z.g..... 00000230: 26bd 7da7 89da d41d 9541 a491 fbdb d615 &.}......A...... 00000240: fb20 9887 fb85 71d0 ef9b 974a 9daa 90fc . ....q....J.... 00000250: 913b b156 1f3a f268 90d7 ab8b 505b a1c5 .;.V.:.h....P[.. 00000260: dbce 1fcf f42c 1ade 8718 52d1 3761 0fe0 .....,....R.7a.. 00000270: 16e7 1faa 5e28 1e70 eee7 0914 b878 8b75 ....^(.p.....x.u 00000280: d61c e30c 923d e892 3309 a084 3c8f bd61 .....=..3...<..a 00000290: a6fc 755b 7636 4138 de67 93fa e415 8377 ..u[v6A8.g.....w 000002a0: d92a 4d54 ab62 ebf5 7554 5b64 2f8f dc17 .*MT.b..uT[d/... 000002b0: 2bbe 9dd4 f1b5 14ef 37bc cf07 f6a3 5c22 +.......7.....\" 000002c0: a2ea fae1 c1f0 ef7b 92a8 45b5 c560 becf .......{..E..`.. 000002d0: ac12 56de 13d3 4cd8 523b 2e2a 432f c585 ..V...L.R;.*C/.. 000002e0: d8ea d1ea 0e5e 1361 b34b 6980 6d19 2cce .....^.a.Ki.m.,. 000002f0: 1615 e977 95ed 95bd 11b8 28c7 d74b ddcc ...w......(..K.. 00000300: 4584 79b4 074c f529 dc5b c57d 9e27 6d1e E.y..L.).[.}.'m. 00000310: ccdf c193 8c90 9529 4802 b9a8 5d6f 9f59 .......)H...]o.Y 00000320: 42cf d182 9e7e 0f0c f25c 5c00 bb24 30da B....~...\\..$0. 00000330: db1f 4cdd 1a54 c010 a3b0 b0ee ec16 adf5 ..L..T.......... 00000340: 4ff4 d9f2 efe7 448d 8082 9565 72ff 2adc O.....D....er.*. 00000350: fa80 a2db 3b4e 7da6 0f2b d458 be51 989e ....;N}..+.X.Q.. 00000360: cc77 caf2 9abe 7e59 d4a7 a36d ef4d fe93 .w....~Y...m.M.. 00000370: 7ab7 4190 1629 0cab 1649 2069 e78f 8d9f z.A..)...I i.... 00000380: 7d5b d3ee 9789 9f25 887c 9d6c cb01 d277 }[.....%.|.l...w 00000390: 8e2f 1909 045d 6bf2 5161 1f4d cda9 a94f ./...]k.Qa.M...O 000003a0: 7865 2355 1112 b5f9 8818 27b1 c166 e2ba xe#U......'..f.. 000003b0: c6b6 5df1 9d32 db44 8905 23e2 ee6c 35f4 ..]..2.D..#..l5. 000003c0: 9279 894f 4691 5c5c 2231 3131 2e77 6d6d .y.OF.\\"111.wmm 000003d0: 2b4a 4b73 4d3e 332e 574a 615a 6332 3536 +JKsM>3.WJaZc256 000003e0: 685e 3863 732a 4c2d 3535 2e29 4a5a 3333 h^8cs*L-55.)JZ33 000003f0: 3634 5b32 3536 6b64 2933 3836 2033 3230 64[256kd)386 320
00000000: 4b6a 4322 05d4 7bb1 06f8 6149 da66 28e3 KjC"..{...aI.f(. 00000010: 8d17 92de a833 9b70 f937 9fc6 a74e 544d .....3.p.7...NTM 00000020: 1388 e4e5 1d7e 9432 fe38 1313 3c34 0c54 .....~.2.8..<4.T 00000030: 89fe 553b 83a3 84bb 08c8 09fe 72be 3597 ..U;........r.5. 00000040: b799 34f8 8809 4868 feb8 acde 2e69 34e6 ..4...Hh.....i4. 00000050: 1c1a c49a 27f0 f06a 3b27 0564 178a 1718 ....'..j;'.d.... 00000060: 1440 e658 e06a c46d aa81 ac3f c4b7 8262 [email protected]...?...b 00000070: 398a 39e3 c9b7 6f71 e2ab 37e0 7566 9997 9.9...oq..7.uf.. 00000080: 54eb eb95 0076 0adf 103c f34c 0b4e e528 T....v...<.L.N.( 00000090: a2df 6b4a 7a02 011a 10a9 2cf0 2edc 9f6f ..kJz.....,....o 000000a0: 33f3 5c96 9e83 fadb a2fa 80fc 5179 3906 3.\.........Qy9. 000000b0: 9596 4960 8997 7225 edb1 9db5 435e fdd8 ..I`..r%....C^.. 000000c0: 08a6 112f 32de c1a5 3db8 160f b729 649a .../2...=....)d. 000000d0: 51fa 08e8 dcfa 11e0 b763 61e6 02b3 5dbb Q........ca...]. 000000e0: 6e64 be69 3939 b5b2 d196 5b85 7991 bda5 nd.i99....[.y... 000000f0: 087a f3c0 6b76 b1d0 bb29 f7a4 29a3 e21a .z..kv...)..)... 00000100: 3b1b 97ae 1d1b 1e0f f3c7 9759 2458 c2db ;..........Y$X.. 00000110: 386f 5fbb a166 9f27 2910 a1b5 cfcc d8db 8o_..f.')....... 00000120: afaf bdb4 573d efb1 399b e160 6acf e14b ....W=..9..`j..K 00000130: 4c6b 957a 245a 6f87 63c7 737d 6218 6ab2 Lk.z$Zo.c.s}b.j. 00000140: e388 a0b3 2007 1ddf b55c 7266 4333 f3a2 .... ....\rfC3.. 00000150: d58f d80b a3a6 c6c1 d474 58f3 274b 6d32 .........tX.'Km2 00000160: 9d72 b674 7cc4 fdf6 6b86 fb45 1219 cc5c .r.t|...k..E...\ 00000170: 7244 396d 1411 d734 a796 ff54 cf1f 119d rD9m...4...T.... 00000180: 91af 5eab 9aad 4300 1dae d42e 13f8 62a1 ..^...C.......b. 00000190: a894 ab0b 9cb1 5ee2 bb63 1fff 3721 2328 ......^..c..7!#( 000001a0: 7609 34f5 fcfe f486 46e9 dfa8 9885 4dac v.4.....F.....M. 000001b0: f464 3666 e8b9 cd82 1159 8434 95e8 5901 .d6f.....Y.4..Y. 000001c0: f0f5 426c ef53 6c7e ad28 60f6 8dd8 edaa ..Bl.Sl~.(`..... 000001d0: 8784 a966 81b6 dc3a e0ea d5bf 7f15 683e ...f...:......h> 000001e0: 93f2 23ae 0845 c218 6bdc f47c 08e8 41c2 ..#..E..k..|..A. 000001f0: 950e f309 d1de 0b64 5868 924e 933e 7ab8 .......dXh.N.>z. 00000200: dab7 8efb b53a 5413 c64b 48e6 fc4d 26fe .....:T..KH..M&. 00000210: 594a 7d6b 2dd0 914e 6947 afa7 614d b605 YJ}k-..NiG..aM.. 00000220: 8737 554e 31bc b21c 3673 76bf fb98 94f8 .7UN1...6sv..... 00000230: 1a7d 0030 3035 2ce6 c302 f6c2 5434 5f74 .}.005,.....T4_t 00000240: c692 349a a33e b327 425c 22e8 8735 37e1 ..4..>.'B\"..57. 00000250: 942a 2170 ef10 ff42 b629 e572 cd0f ca4f .*!p...B.).r...O 00000260: 5d52 247d 3e62 6d9a d71a 8b01 4826 d54b ]R$}>bm.....H&.K 00000270: f26f fe8e d33d efb5 30a8 54fb d50a 8f44 .o...=..0.T....D 00000280: a3ac 170a b9a0 e436 50d5 0589 6fda 674a .......6P...o.gJ 00000290: 26fb 5cf6 27ef 714e fe74 64fa d487 afea &.\.'.qN.td..... 000002a0: 09f7 e1f1 21b6 38eb 54cd c736 2afa d031 ....!.8.T..6*..1 000002b0: 853c 8890 8cc0 7fab 5f15 91d5 de6e 460f .<......_....nF. 000002c0: 4b95 6a4d 02e4 7824 1bbe ae36 5e6c 0acd K.jM..x$...6^l.. 000002d0: 0603 b86c f9fd a299 480f 4123 627e 951f ...l....H.A#b~.. 000002e0: a678 3510 912c 26a6 2efc f943 af96 53cd .x5..,&....C..S. 000002f0: 3f6c 435c cbae 832f 316c e90e 01e7 8fd6 ?lC\.../1l...... 00000300: 3e6d d7b4 fffb cd4a 69c7 5f23 2fe7 bf52 >m.....Ji._#/..R 00000310: 3632 3990 17ed 045a b543 8b79 8231 bc9b 629....Z.C.y.1.. 00000320: 4452 0f10 b342 3e41 6e70 187c 9cb2 7eb5 DR...B>Anp.|..~. 00000330: cdff 5c22 9e34 618f b372 8acf 4172 a220 ..\".4a..r..Ar. 00000340: 0136 3eff 2702 dc5d b946 076d e5fd 6045 .6>.'..].F.m..`E 00000350: 8465 661a 1c6e b6c8 595f 6091 daf2 103b .ef..n..Y_`....; 00000360: 23ab 343a 2e47 95cf 4218 7bf5 8a46 0a69 #.4:.G..B.{..F.i 00000370: dabb 4b8d 7f9b b0c1 23b1 c917 839c 358c ..K.....#.....5. 00000380: b33c de51 e41c e84d 12bf 8379 f4c5 65fa .<.Q...M...y..e. 00000390: 0b65 7fe7 e1a0 fb0e 30f4 a7d2 b323 3400 .e......0....#4. 000003a0: 15e8 8a48 5d42 9a70 3979 7bba abf5 4b80 ...H]B.p9y{...K. 000003b0: b239 4ceb d301 89f8 9f4d 5ce6 8caa 2a74 .9L......M\...*t 000003c0: ca1b 9d3f f934 0622 3933 2e77 6d6d 2b4a ...?.4."93.wmm+J 000003d0: 4b73 4d3e 332e 574a 615a 6332 3536 685e KsM>3.WJaZc256h^ 000003e0: 3463 732a 4c2d 3436 2e29 4a5a 3138 3739 4cs*L-46.)JZ1879 000003f0: 5b32 3739 6b33 6429 3338 3620 3332 30 [279k3d)386 320
KjyC"…"111KjC"…"93
C"…" convert the long binary string to an integer in base 256
y double it
j 11193 list its base 11193 digits
K assign to K
.wmm+JKsM>3.WJaZc256h^8cs*LWJaZc256h^4cs*L-5546.)JZ3364[256kdJZ1879[279k3d)386 320
m 320 320 map for d in [0, …, 319]:
m 386 386 map for k in [0, …, 385]
JK copy K to J
[256kd[279k3d) initialize value to [256[3*93, k, 3, d]
.WJ while J is nonempty, replace value with
*L Z map over value, multiplying by
.)J pop back of J
-5546 subtract from 5546
s sum
c 33641879 divide by 33641879
^8^4 exponentiate with base 84
h add 1
c256 256 divided by that
aZ append to value
>3 last three elements of the final value
sM floor to integers
.w write that matrix of RGB triples as image o.png