Xsmos commited on
Commit
24f5b3f
·
verified ·
1 Parent(s): 7d468d2
Files changed (2) hide show
  1. diffusion.ipynb +733 -0
  2. quantify_results.ipynb +5 -5
diffusion.ipynb CHANGED
@@ -1289,6 +1289,739 @@
1289
  },
1290
  "metadata": {},
1291
  "output_type": "display_data"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1292
  }
1293
  ],
1294
  "source": [
 
1289
  },
1290
  "metadata": {},
1291
  "output_type": "display_data"
1292
+ },
1293
+ {
1294
+ "name": "stdout",
1295
+ "output_type": "stream",
1296
+ "text": [
1297
+ "saved model at ./outputs/model_state-N1600\n",
1298
+ "-------------------- round 1 ---------------------\n",
1299
+ "Number of parameters for nn_model: 111048705\n",
1300
+ "run_name = 0702-1322\n",
1301
+ "Launching training on one GPU.\n",
1302
+ "dataset content: <KeysViewHDF5 ['brightness_temp', 'density', 'kwargs', 'params', 'redshifts_distances', 'seeds', 'xH_box']>\n",
1303
+ "51200 images can be loaded\n",
1304
+ "field.shape = (64, 64, 514)\n",
1305
+ "params keys = [b'ION_Tvir_MIN', b'HII_EFF_FACTOR']\n",
1306
+ "loading 3200 images randomly\n",
1307
+ "images loaded: (3200, 1, 64, 64)\n"
1308
+ ]
1309
+ },
1310
+ {
1311
+ "name": "stderr",
1312
+ "output_type": "stream",
1313
+ "text": [
1314
+ "Detected kernel version 3.10.0, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.\n"
1315
+ ]
1316
+ },
1317
+ {
1318
+ "name": "stdout",
1319
+ "output_type": "stream",
1320
+ "text": [
1321
+ "params loaded: (3200, 2)\n",
1322
+ "images rescaled to [-1.0, 1.186443567276001]\n",
1323
+ "params rescaled to [0.0001255285355114581, 0.99988945406874]\n"
1324
+ ]
1325
+ },
1326
+ {
1327
+ "data": {
1328
+ "application/vnd.jupyter.widget-view+json": {
1329
+ "model_id": "0f8a3d594bbc4ba497b78ea07a7af526",
1330
+ "version_major": 2,
1331
+ "version_minor": 0
1332
+ },
1333
+ "text/plain": [
1334
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1335
+ ]
1336
+ },
1337
+ "metadata": {},
1338
+ "output_type": "display_data"
1339
+ },
1340
+ {
1341
+ "data": {
1342
+ "application/vnd.jupyter.widget-view+json": {
1343
+ "model_id": "2e560c1c35744e0496090a3880014781",
1344
+ "version_major": 2,
1345
+ "version_minor": 0
1346
+ },
1347
+ "text/plain": [
1348
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1349
+ ]
1350
+ },
1351
+ "metadata": {},
1352
+ "output_type": "display_data"
1353
+ },
1354
+ {
1355
+ "data": {
1356
+ "application/vnd.jupyter.widget-view+json": {
1357
+ "model_id": "b209639baef84597b82c3a44dd7b90a2",
1358
+ "version_major": 2,
1359
+ "version_minor": 0
1360
+ },
1361
+ "text/plain": [
1362
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1363
+ ]
1364
+ },
1365
+ "metadata": {},
1366
+ "output_type": "display_data"
1367
+ },
1368
+ {
1369
+ "data": {
1370
+ "application/vnd.jupyter.widget-view+json": {
1371
+ "model_id": "ac2bcfe4ec174790a51e551badfee98f",
1372
+ "version_major": 2,
1373
+ "version_minor": 0
1374
+ },
1375
+ "text/plain": [
1376
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1377
+ ]
1378
+ },
1379
+ "metadata": {},
1380
+ "output_type": "display_data"
1381
+ },
1382
+ {
1383
+ "data": {
1384
+ "application/vnd.jupyter.widget-view+json": {
1385
+ "model_id": "456c2fc787194e3b8807ffd5ef705568",
1386
+ "version_major": 2,
1387
+ "version_minor": 0
1388
+ },
1389
+ "text/plain": [
1390
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1391
+ ]
1392
+ },
1393
+ "metadata": {},
1394
+ "output_type": "display_data"
1395
+ },
1396
+ {
1397
+ "data": {
1398
+ "application/vnd.jupyter.widget-view+json": {
1399
+ "model_id": "07949d0e78764eec8e6a66bdcf00899b",
1400
+ "version_major": 2,
1401
+ "version_minor": 0
1402
+ },
1403
+ "text/plain": [
1404
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1405
+ ]
1406
+ },
1407
+ "metadata": {},
1408
+ "output_type": "display_data"
1409
+ },
1410
+ {
1411
+ "data": {
1412
+ "application/vnd.jupyter.widget-view+json": {
1413
+ "model_id": "3652d3349249413dbe69766cc26486bb",
1414
+ "version_major": 2,
1415
+ "version_minor": 0
1416
+ },
1417
+ "text/plain": [
1418
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1419
+ ]
1420
+ },
1421
+ "metadata": {},
1422
+ "output_type": "display_data"
1423
+ },
1424
+ {
1425
+ "data": {
1426
+ "application/vnd.jupyter.widget-view+json": {
1427
+ "model_id": "9a63249622ea40db9aadd1942107c5ff",
1428
+ "version_major": 2,
1429
+ "version_minor": 0
1430
+ },
1431
+ "text/plain": [
1432
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1433
+ ]
1434
+ },
1435
+ "metadata": {},
1436
+ "output_type": "display_data"
1437
+ },
1438
+ {
1439
+ "data": {
1440
+ "application/vnd.jupyter.widget-view+json": {
1441
+ "model_id": "c1240ba119424b80acfa51929bff5ceb",
1442
+ "version_major": 2,
1443
+ "version_minor": 0
1444
+ },
1445
+ "text/plain": [
1446
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1447
+ ]
1448
+ },
1449
+ "metadata": {},
1450
+ "output_type": "display_data"
1451
+ },
1452
+ {
1453
+ "data": {
1454
+ "application/vnd.jupyter.widget-view+json": {
1455
+ "model_id": "cb76e2d824104eeeb4b7ac94fcd04af6",
1456
+ "version_major": 2,
1457
+ "version_minor": 0
1458
+ },
1459
+ "text/plain": [
1460
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1461
+ ]
1462
+ },
1463
+ "metadata": {},
1464
+ "output_type": "display_data"
1465
+ },
1466
+ {
1467
+ "data": {
1468
+ "application/vnd.jupyter.widget-view+json": {
1469
+ "model_id": "05f154d3b25a42299daf351bc6b293d6",
1470
+ "version_major": 2,
1471
+ "version_minor": 0
1472
+ },
1473
+ "text/plain": [
1474
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1475
+ ]
1476
+ },
1477
+ "metadata": {},
1478
+ "output_type": "display_data"
1479
+ },
1480
+ {
1481
+ "data": {
1482
+ "application/vnd.jupyter.widget-view+json": {
1483
+ "model_id": "dc1a5144d9a143eba15bc837fd3bc184",
1484
+ "version_major": 2,
1485
+ "version_minor": 0
1486
+ },
1487
+ "text/plain": [
1488
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1489
+ ]
1490
+ },
1491
+ "metadata": {},
1492
+ "output_type": "display_data"
1493
+ },
1494
+ {
1495
+ "data": {
1496
+ "application/vnd.jupyter.widget-view+json": {
1497
+ "model_id": "6df30962f908426c93227e19a573bcf7",
1498
+ "version_major": 2,
1499
+ "version_minor": 0
1500
+ },
1501
+ "text/plain": [
1502
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1503
+ ]
1504
+ },
1505
+ "metadata": {},
1506
+ "output_type": "display_data"
1507
+ },
1508
+ {
1509
+ "data": {
1510
+ "application/vnd.jupyter.widget-view+json": {
1511
+ "model_id": "e59ea4407dff46f5bb3bd4060b828d05",
1512
+ "version_major": 2,
1513
+ "version_minor": 0
1514
+ },
1515
+ "text/plain": [
1516
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1517
+ ]
1518
+ },
1519
+ "metadata": {},
1520
+ "output_type": "display_data"
1521
+ },
1522
+ {
1523
+ "data": {
1524
+ "application/vnd.jupyter.widget-view+json": {
1525
+ "model_id": "1ca750cbad3b4a7c9d04c7a96148da7e",
1526
+ "version_major": 2,
1527
+ "version_minor": 0
1528
+ },
1529
+ "text/plain": [
1530
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1531
+ ]
1532
+ },
1533
+ "metadata": {},
1534
+ "output_type": "display_data"
1535
+ },
1536
+ {
1537
+ "data": {
1538
+ "application/vnd.jupyter.widget-view+json": {
1539
+ "model_id": "dc22be0bdb914af6974e601161dbdcbf",
1540
+ "version_major": 2,
1541
+ "version_minor": 0
1542
+ },
1543
+ "text/plain": [
1544
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1545
+ ]
1546
+ },
1547
+ "metadata": {},
1548
+ "output_type": "display_data"
1549
+ },
1550
+ {
1551
+ "data": {
1552
+ "application/vnd.jupyter.widget-view+json": {
1553
+ "model_id": "c541bdbba5124a92b3ba5f459cae86fc",
1554
+ "version_major": 2,
1555
+ "version_minor": 0
1556
+ },
1557
+ "text/plain": [
1558
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1559
+ ]
1560
+ },
1561
+ "metadata": {},
1562
+ "output_type": "display_data"
1563
+ },
1564
+ {
1565
+ "data": {
1566
+ "application/vnd.jupyter.widget-view+json": {
1567
+ "model_id": "8bd5d0d1bf49455faf3981a55a84c887",
1568
+ "version_major": 2,
1569
+ "version_minor": 0
1570
+ },
1571
+ "text/plain": [
1572
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1573
+ ]
1574
+ },
1575
+ "metadata": {},
1576
+ "output_type": "display_data"
1577
+ },
1578
+ {
1579
+ "data": {
1580
+ "application/vnd.jupyter.widget-view+json": {
1581
+ "model_id": "20b607ab7847421c8422e23a4ec76f61",
1582
+ "version_major": 2,
1583
+ "version_minor": 0
1584
+ },
1585
+ "text/plain": [
1586
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1587
+ ]
1588
+ },
1589
+ "metadata": {},
1590
+ "output_type": "display_data"
1591
+ },
1592
+ {
1593
+ "data": {
1594
+ "application/vnd.jupyter.widget-view+json": {
1595
+ "model_id": "636ae35f4c0b49eeb9a7203fa66bb91a",
1596
+ "version_major": 2,
1597
+ "version_minor": 0
1598
+ },
1599
+ "text/plain": [
1600
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1601
+ ]
1602
+ },
1603
+ "metadata": {},
1604
+ "output_type": "display_data"
1605
+ },
1606
+ {
1607
+ "data": {
1608
+ "application/vnd.jupyter.widget-view+json": {
1609
+ "model_id": "68b5462549044bc3b68900ef510917f7",
1610
+ "version_major": 2,
1611
+ "version_minor": 0
1612
+ },
1613
+ "text/plain": [
1614
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1615
+ ]
1616
+ },
1617
+ "metadata": {},
1618
+ "output_type": "display_data"
1619
+ },
1620
+ {
1621
+ "data": {
1622
+ "application/vnd.jupyter.widget-view+json": {
1623
+ "model_id": "c473d0f6b48c415690619990da5066a8",
1624
+ "version_major": 2,
1625
+ "version_minor": 0
1626
+ },
1627
+ "text/plain": [
1628
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1629
+ ]
1630
+ },
1631
+ "metadata": {},
1632
+ "output_type": "display_data"
1633
+ },
1634
+ {
1635
+ "data": {
1636
+ "application/vnd.jupyter.widget-view+json": {
1637
+ "model_id": "552c924f4237455487d27e96b2d45303",
1638
+ "version_major": 2,
1639
+ "version_minor": 0
1640
+ },
1641
+ "text/plain": [
1642
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1643
+ ]
1644
+ },
1645
+ "metadata": {},
1646
+ "output_type": "display_data"
1647
+ },
1648
+ {
1649
+ "data": {
1650
+ "application/vnd.jupyter.widget-view+json": {
1651
+ "model_id": "c9ca049b7a49479d9f564c5f71136f6f",
1652
+ "version_major": 2,
1653
+ "version_minor": 0
1654
+ },
1655
+ "text/plain": [
1656
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1657
+ ]
1658
+ },
1659
+ "metadata": {},
1660
+ "output_type": "display_data"
1661
+ },
1662
+ {
1663
+ "data": {
1664
+ "application/vnd.jupyter.widget-view+json": {
1665
+ "model_id": "978daba9c59f4e3f9ab85ed39efb3cc3",
1666
+ "version_major": 2,
1667
+ "version_minor": 0
1668
+ },
1669
+ "text/plain": [
1670
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1671
+ ]
1672
+ },
1673
+ "metadata": {},
1674
+ "output_type": "display_data"
1675
+ },
1676
+ {
1677
+ "data": {
1678
+ "application/vnd.jupyter.widget-view+json": {
1679
+ "model_id": "245e3f027efa44d6be030097240bca67",
1680
+ "version_major": 2,
1681
+ "version_minor": 0
1682
+ },
1683
+ "text/plain": [
1684
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1685
+ ]
1686
+ },
1687
+ "metadata": {},
1688
+ "output_type": "display_data"
1689
+ },
1690
+ {
1691
+ "data": {
1692
+ "application/vnd.jupyter.widget-view+json": {
1693
+ "model_id": "ea0daf8b3fe04903a5126ea5b2a07a54",
1694
+ "version_major": 2,
1695
+ "version_minor": 0
1696
+ },
1697
+ "text/plain": [
1698
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1699
+ ]
1700
+ },
1701
+ "metadata": {},
1702
+ "output_type": "display_data"
1703
+ },
1704
+ {
1705
+ "data": {
1706
+ "application/vnd.jupyter.widget-view+json": {
1707
+ "model_id": "dc8f22502f6b4d70b8500d3877adbb91",
1708
+ "version_major": 2,
1709
+ "version_minor": 0
1710
+ },
1711
+ "text/plain": [
1712
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1713
+ ]
1714
+ },
1715
+ "metadata": {},
1716
+ "output_type": "display_data"
1717
+ },
1718
+ {
1719
+ "data": {
1720
+ "application/vnd.jupyter.widget-view+json": {
1721
+ "model_id": "5753b5b05824481e8ce34f3df5cd7568",
1722
+ "version_major": 2,
1723
+ "version_minor": 0
1724
+ },
1725
+ "text/plain": [
1726
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1727
+ ]
1728
+ },
1729
+ "metadata": {},
1730
+ "output_type": "display_data"
1731
+ },
1732
+ {
1733
+ "data": {
1734
+ "application/vnd.jupyter.widget-view+json": {
1735
+ "model_id": "06796fca4efd442b9890ab3c03356213",
1736
+ "version_major": 2,
1737
+ "version_minor": 0
1738
+ },
1739
+ "text/plain": [
1740
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1741
+ ]
1742
+ },
1743
+ "metadata": {},
1744
+ "output_type": "display_data"
1745
+ },
1746
+ {
1747
+ "data": {
1748
+ "application/vnd.jupyter.widget-view+json": {
1749
+ "model_id": "4651c41f3183446c90e97f5283eed693",
1750
+ "version_major": 2,
1751
+ "version_minor": 0
1752
+ },
1753
+ "text/plain": [
1754
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1755
+ ]
1756
+ },
1757
+ "metadata": {},
1758
+ "output_type": "display_data"
1759
+ },
1760
+ {
1761
+ "data": {
1762
+ "application/vnd.jupyter.widget-view+json": {
1763
+ "model_id": "dba1b94413734c95901aa5376767fa5c",
1764
+ "version_major": 2,
1765
+ "version_minor": 0
1766
+ },
1767
+ "text/plain": [
1768
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1769
+ ]
1770
+ },
1771
+ "metadata": {},
1772
+ "output_type": "display_data"
1773
+ },
1774
+ {
1775
+ "data": {
1776
+ "application/vnd.jupyter.widget-view+json": {
1777
+ "model_id": "ea62e5654c6342c0b03d5ce5e73bf7b0",
1778
+ "version_major": 2,
1779
+ "version_minor": 0
1780
+ },
1781
+ "text/plain": [
1782
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1783
+ ]
1784
+ },
1785
+ "metadata": {},
1786
+ "output_type": "display_data"
1787
+ },
1788
+ {
1789
+ "data": {
1790
+ "application/vnd.jupyter.widget-view+json": {
1791
+ "model_id": "f2a69eeb129c4699a99f190f565a3a40",
1792
+ "version_major": 2,
1793
+ "version_minor": 0
1794
+ },
1795
+ "text/plain": [
1796
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1797
+ ]
1798
+ },
1799
+ "metadata": {},
1800
+ "output_type": "display_data"
1801
+ },
1802
+ {
1803
+ "data": {
1804
+ "application/vnd.jupyter.widget-view+json": {
1805
+ "model_id": "a8bc49da23524c1592ad52c26a1a9eed",
1806
+ "version_major": 2,
1807
+ "version_minor": 0
1808
+ },
1809
+ "text/plain": [
1810
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1811
+ ]
1812
+ },
1813
+ "metadata": {},
1814
+ "output_type": "display_data"
1815
+ },
1816
+ {
1817
+ "data": {
1818
+ "application/vnd.jupyter.widget-view+json": {
1819
+ "model_id": "e68209b9fc3448e2bf2be5f13dc566a8",
1820
+ "version_major": 2,
1821
+ "version_minor": 0
1822
+ },
1823
+ "text/plain": [
1824
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1825
+ ]
1826
+ },
1827
+ "metadata": {},
1828
+ "output_type": "display_data"
1829
+ },
1830
+ {
1831
+ "data": {
1832
+ "application/vnd.jupyter.widget-view+json": {
1833
+ "model_id": "352dbdb28a5744288c1e7a0501990817",
1834
+ "version_major": 2,
1835
+ "version_minor": 0
1836
+ },
1837
+ "text/plain": [
1838
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1839
+ ]
1840
+ },
1841
+ "metadata": {},
1842
+ "output_type": "display_data"
1843
+ },
1844
+ {
1845
+ "data": {
1846
+ "application/vnd.jupyter.widget-view+json": {
1847
+ "model_id": "55b1974171d04be9ad6ac84972743ac3",
1848
+ "version_major": 2,
1849
+ "version_minor": 0
1850
+ },
1851
+ "text/plain": [
1852
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1853
+ ]
1854
+ },
1855
+ "metadata": {},
1856
+ "output_type": "display_data"
1857
+ },
1858
+ {
1859
+ "data": {
1860
+ "application/vnd.jupyter.widget-view+json": {
1861
+ "model_id": "ea125a8cf4524c17b142e48f074fd069",
1862
+ "version_major": 2,
1863
+ "version_minor": 0
1864
+ },
1865
+ "text/plain": [
1866
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1867
+ ]
1868
+ },
1869
+ "metadata": {},
1870
+ "output_type": "display_data"
1871
+ },
1872
+ {
1873
+ "data": {
1874
+ "application/vnd.jupyter.widget-view+json": {
1875
+ "model_id": "729e149453824b43ada3448e1b19b556",
1876
+ "version_major": 2,
1877
+ "version_minor": 0
1878
+ },
1879
+ "text/plain": [
1880
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1881
+ ]
1882
+ },
1883
+ "metadata": {},
1884
+ "output_type": "display_data"
1885
+ },
1886
+ {
1887
+ "data": {
1888
+ "application/vnd.jupyter.widget-view+json": {
1889
+ "model_id": "035b4284a3eb48f4b04f3151529fbad1",
1890
+ "version_major": 2,
1891
+ "version_minor": 0
1892
+ },
1893
+ "text/plain": [
1894
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1895
+ ]
1896
+ },
1897
+ "metadata": {},
1898
+ "output_type": "display_data"
1899
+ },
1900
+ {
1901
+ "data": {
1902
+ "application/vnd.jupyter.widget-view+json": {
1903
+ "model_id": "d3a24a64b2104836a9c80601b604a80a",
1904
+ "version_major": 2,
1905
+ "version_minor": 0
1906
+ },
1907
+ "text/plain": [
1908
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1909
+ ]
1910
+ },
1911
+ "metadata": {},
1912
+ "output_type": "display_data"
1913
+ },
1914
+ {
1915
+ "data": {
1916
+ "application/vnd.jupyter.widget-view+json": {
1917
+ "model_id": "db0c6a7ed4504180bd9a697126c0ead5",
1918
+ "version_major": 2,
1919
+ "version_minor": 0
1920
+ },
1921
+ "text/plain": [
1922
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1923
+ ]
1924
+ },
1925
+ "metadata": {},
1926
+ "output_type": "display_data"
1927
+ },
1928
+ {
1929
+ "data": {
1930
+ "application/vnd.jupyter.widget-view+json": {
1931
+ "model_id": "d6a1730f1dd84c6ba05b1ded5ba1e2ee",
1932
+ "version_major": 2,
1933
+ "version_minor": 0
1934
+ },
1935
+ "text/plain": [
1936
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1937
+ ]
1938
+ },
1939
+ "metadata": {},
1940
+ "output_type": "display_data"
1941
+ },
1942
+ {
1943
+ "data": {
1944
+ "application/vnd.jupyter.widget-view+json": {
1945
+ "model_id": "c63c15d157fa4a71ad9cde0b09b5bfde",
1946
+ "version_major": 2,
1947
+ "version_minor": 0
1948
+ },
1949
+ "text/plain": [
1950
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1951
+ ]
1952
+ },
1953
+ "metadata": {},
1954
+ "output_type": "display_data"
1955
+ },
1956
+ {
1957
+ "data": {
1958
+ "application/vnd.jupyter.widget-view+json": {
1959
+ "model_id": "9dedfc463ef846f2aab2dd87be3c1f35",
1960
+ "version_major": 2,
1961
+ "version_minor": 0
1962
+ },
1963
+ "text/plain": [
1964
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1965
+ ]
1966
+ },
1967
+ "metadata": {},
1968
+ "output_type": "display_data"
1969
+ },
1970
+ {
1971
+ "data": {
1972
+ "application/vnd.jupyter.widget-view+json": {
1973
+ "model_id": "5709b368018341cf88226628f6524f1b",
1974
+ "version_major": 2,
1975
+ "version_minor": 0
1976
+ },
1977
+ "text/plain": [
1978
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1979
+ ]
1980
+ },
1981
+ "metadata": {},
1982
+ "output_type": "display_data"
1983
+ },
1984
+ {
1985
+ "data": {
1986
+ "application/vnd.jupyter.widget-view+json": {
1987
+ "model_id": "2b9e94e965e14dd5b89cd989d5aa97f5",
1988
+ "version_major": 2,
1989
+ "version_minor": 0
1990
+ },
1991
+ "text/plain": [
1992
+ " 0%| | 0/64 [00:00<?, ?it/s]"
1993
+ ]
1994
+ },
1995
+ "metadata": {},
1996
+ "output_type": "display_data"
1997
+ },
1998
+ {
1999
+ "data": {
2000
+ "application/vnd.jupyter.widget-view+json": {
2001
+ "model_id": "7538ba5f44dd447a87728e2d52fe410c",
2002
+ "version_major": 2,
2003
+ "version_minor": 0
2004
+ },
2005
+ "text/plain": [
2006
+ " 0%| | 0/64 [00:00<?, ?it/s]"
2007
+ ]
2008
+ },
2009
+ "metadata": {},
2010
+ "output_type": "display_data"
2011
+ },
2012
+ {
2013
+ "data": {
2014
+ "application/vnd.jupyter.widget-view+json": {
2015
+ "model_id": "78dec1b59ddb4d5faf76533f2404f719",
2016
+ "version_major": 2,
2017
+ "version_minor": 0
2018
+ },
2019
+ "text/plain": [
2020
+ " 0%| | 0/64 [00:00<?, ?it/s]"
2021
+ ]
2022
+ },
2023
+ "metadata": {},
2024
+ "output_type": "display_data"
2025
  }
2026
  ],
2027
  "source": [
quantify_results.ipynb CHANGED
@@ -48,14 +48,14 @@
48
  "outputs": [],
49
  "source": [
50
  "def load_h5_as_tensor(dir_name='/storage/home/hcoda1/3/bxia34/scratch/LEN128-DIM64-CUB8-4.4-131.341.h5'):\n",
51
- " dataset = Dataset4h5(dir_name, num_image=192, num_redshift=64, HII_DIM=64, rescale=False, dim=2)\n",
52
  "\n",
53
  " with h5py.File(dir_name) as f:\n",
54
  " print(f.keys())\n",
55
  " print(f['redshifts_distances'])\n",
56
  " los = f['redshifts_distances'][:,-dataset.num_redshift:]\n",
57
  "\n",
58
- " dataloader = DataLoader(dataset, batch_size=192)\n",
59
  " \n",
60
  " x, c = next(iter(dataloader))\n",
61
  " print(\"x.shape =\", x.shape)\n",
@@ -560,7 +560,7 @@
560
  "# x_ml = torch.from_numpy(x_ml)\n",
561
  "# x_ml = unscale(x_ml)\n",
562
  "\n",
563
- "num = 1000\n",
564
  "x0_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir4.400000095367432-zeta131.34100341796875-N{num}.npy\")))\n",
565
  "x1_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir5.599999904632568-zeta19.03700065612793-N{num}.npy\")))\n",
566
  "x2_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir4.698999881744385-zeta30.0-N{num}.npy\")))\n",
@@ -1865,8 +1865,8 @@
1865
  }
1866
  ],
1867
  "source": [
1868
- "num_list = [1000, 2000, 3000, 5000, 7000, 10000, 15000, 20000, 25600, 32000]\n",
1869
- "# num_list = [2000, 3000, 7000, 15000, 25600]\n",
1870
  "FSD_matrix = []\n",
1871
  "for num in num_list:\n",
1872
  " x0_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir4.400000095367432-zeta131.34100341796875-N{num}.npy\")))\n",
 
48
  "outputs": [],
49
  "source": [
50
  "def load_h5_as_tensor(dir_name='/storage/home/hcoda1/3/bxia34/scratch/LEN128-DIM64-CUB8-4.4-131.341.h5'):\n",
51
+ " dataset = Dataset4h5(dir_name, num_image=800, num_redshift=64, HII_DIM=64, rescale=False, dim=2)\n",
52
  "\n",
53
  " with h5py.File(dir_name) as f:\n",
54
  " print(f.keys())\n",
55
  " print(f['redshifts_distances'])\n",
56
  " los = f['redshifts_distances'][:,-dataset.num_redshift:]\n",
57
  "\n",
58
+ " dataloader = DataLoader(dataset, batch_size=800)\n",
59
  " \n",
60
  " x, c = next(iter(dataloader))\n",
61
  " print(\"x.shape =\", x.shape)\n",
 
560
  "# x_ml = torch.from_numpy(x_ml)\n",
561
  "# x_ml = unscale(x_ml)\n",
562
  "\n",
563
+ "num = 1600\n",
564
  "x0_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir4.400000095367432-zeta131.34100341796875-N{num}.npy\")))\n",
565
  "x1_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir5.599999904632568-zeta19.03700065612793-N{num}.npy\")))\n",
566
  "x2_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir4.698999881744385-zeta30.0-N{num}.npy\")))\n",
 
1865
  }
1866
  ],
1867
  "source": [
1868
+ "# num_list = [1000, 2000, 3000, 5000, 7000, 10000, 15000, 20000, 25600, 32000]\n",
1869
+ "num_list = [1600, 3200, 6400, 12800, 25600]\n",
1870
  "FSD_matrix = []\n",
1871
  "for num in num_list:\n",
1872
  " x0_ml = rescale(torch.from_numpy(np.load(f\"outputs/Tvir4.400000095367432-zeta131.34100341796875-N{num}.npy\")))\n",