-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathworkspace_index.json
More file actions
961 lines (961 loc) · 37 KB
/
Copy pathworkspace_index.json
File metadata and controls
961 lines (961 loc) · 37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
[
{
"contents": [
"Directories",
"Dataset",
"Dataset Auto-Simulation",
"Subplots",
"Plot Customization",
"Overlays",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_1_introduction/tutorial_0_visualization.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_0_visualization.py",
"summary": "In this tutorial, we quickly cover visualization in **PyAutoLens** and make sure images display clearly in your Jupyter notebook and on your computer screen.",
"title": "Tutorial 0: Visualization"
},
{
"contents": [
"Grids",
"Geometry",
"Light Profiles",
"One Dimension Projection",
"Galaxies",
"Units",
"Wrap Up",
"Advanced Topics",
"Other Unit Conversion",
"Over Sampling"
],
"cross_refs": [
"/guides/advanced/over_sampling.ipynb"
],
"notebook": "notebooks/chapter_1_introduction/tutorial_1_grids_and_galaxies.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_1_grids_and_galaxies.py",
"summary": "A strong gravitational lens is a system where two (or more) galaxies align perfectly down our line of sight from Earth such that the foreground galaxy's mass curves space-time in on itself, such that the light of a background source galaxy is deflected and magnified. This means we can see the background source galaxy multiple times, as multiple arcs or rings, because multiple paths through the foreground galaxy's mass are taken by the source's light.",
"title": "HowToLens: Introduction"
},
{
"contents": [
"Grid",
"Mass Profiles",
"Ray Tracing Grids",
"Ray Tracing Images",
"Galaxies",
"Tracer",
"Mappings",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_2_ray_tracing.py",
"summary": "Strong gravitational lensing occurs when the mass of a foreground galaxy (or galaxies) curves space-time around it, causing light rays from a background source to appear deflected.",
"title": "Tutorial 2: Ray Tracing"
},
{
"contents": [
"Initial Setup",
"Concise Code",
"Critical Curves",
"Caustics",
"Units",
"More Complexity",
"Multi Galaxy Ray Tracing",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py",
"summary": "We'll now reinforce the ideas that we learnt about ray-tracing in the previous tutorial and introduce the following new concepts:",
"title": "Tutorial 3: More Ray Tracing"
},
{
"contents": [
"Initial Setup",
"Point Sources",
"Point Source Tracer",
"The Lens Equation",
"Point Solver",
"Multiple Images and Critical Curves",
"Magnifications",
"Time Delays",
"Extended Versus Point Computations",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_1_introduction/tutorial_4_point_sources.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_4_point_sources.py",
"summary": "In the previous tutorials, the background sources we lensed were galaxies: extended objects whose light spreads over many thousands of light years. When lensed, their light is warped into the arcs and Einstein rings we produced with the `Tracer`, spread across many pixels of the image.",
"title": "Tutorial 4: Point Sources"
},
{
"contents": [
"Initial Setup",
"Cosmological Distances",
"The Lens Equation",
"Convergence",
"Deflection Angles",
"The Lensing Potential",
"Shear and Magnification",
"Critical Curves and Caustics",
"Einstein Radius",
"Time Delays",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_1_introduction/tutorial_5_lensing_formalism.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_5_lensing_formalism.py",
"summary": "This tutorial is the equations lecture of **HowToLens**.",
"title": "Tutorial 5: Lensing Formalism"
},
{
"contents": [
"Initial Setup",
"Optics Blurring",
"Poisson Noise",
"Background Sky",
"Simulator",
"Output",
"Interferometer Data",
"Weak Lensing Data",
"Wrap Up"
],
"cross_refs": [
"scripts/simulator/interferometer.py",
"scripts/simulator/weak_lensing.py"
],
"notebook": "notebooks/chapter_1_introduction/tutorial_6_data.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_6_data.py",
"summary": "In the last tutorials, we use tracers to create images of strong lenses. However, those images don't accurately represent what we would observe through a telescope.",
"title": "Tutorial 6: Data"
},
{
"contents": [
"Dataset",
"Dataset Auto-Simulation",
"Mask",
"Masked Grid",
"Fitting",
"Incorrect Fit",
"Model Fitting",
"Wrap Up"
],
"cross_refs": [
"tutorial_6_data.py"
],
"notebook": "notebooks/chapter_1_introduction/tutorial_7_fitting.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_7_fitting.py",
"summary": "In previous tutorials, we used light profiles to create simulated images of a tracer and visualized how these images would appear when captured by a CCD detector on a telescope like the Hubble Space Telescope.",
"title": "Tutorial 7: Fitting"
},
{
"contents": [
"Start",
"Object Composition",
"Visualization",
"Code Design",
"Source Code",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_1_introduction/tutorial_8_summary.ipynb",
"path": "scripts/chapter_1_introduction/tutorial_8_summary.py",
"summary": "In this chapter, we have learnt that:",
"title": "Tutorial 8: Summary"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Model",
"Search",
"Result (Search 1)",
"Prior Passing",
"Result",
"Wrap Up",
"Detailed Explanation Of Prior Passing",
"EXAMPLE"
],
"cross_refs": [
"autolens_workspace/scripts/guides/modeling/chaining.py"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_10_prior_passing.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_10_prior_passing.py",
"summary": "In the previous tutorial, we used non-linear search chaining to break the model-fitting procedure down into two non-linear searches. This used an initial search to fit a simple lens model, whose results were used to tune and initialize the priors of a more complex lens model that was fitted by the second search.",
"title": "Tutorial 10: Prior Passing"
},
{
"contents": [
"Search Chaining In The Workspace",
"SLaM (Source, Light and Mass)",
"Wrap Up"
],
"cross_refs": [
"autolens_workspace/scripts/guides/modeling/chaining.py",
"autolens_workspace/scripts/guides/modeling/slam_start_here.py",
"autolens_workspace/scripts/imaging/features/multi_gaussian_expansion/slam.py",
"autolens_workspace/scripts/imaging/features/pixelization/slam.py",
"slam.py"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_11_slam.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_11_slam.py",
"summary": "In the previous two tutorials, we learnt how search chaining breaks a lens model-fit into a sequence of simpler non-linear searches, and how prior passing carries the results of each search into the next. Together, they give us the flexibility to juggle the dimensionality, priors and settings of each search \u2014 the three drivers of run-time we met in tutorial 8 \u2014 whilst still fitting a complex and realistic lens model at the end.",
"title": "Tutorial 11: SLaM"
},
{
"contents": [
"Overview",
"Parameter Space",
"Non-Linear Search",
"Search Types",
"Deeper Background",
"PyAutoFit",
"Initial Setup",
"Dataset Auto-Simulation",
"Mask",
"Model",
"Priors",
"Analysis",
"Searches",
"Maximum Likelihood Estimation (MLE)",
"Markov Chain Monte Carlo (MCMC)",
"Nested Sampling",
"What is The Best Search To Use?",
"Wrap Up"
],
"cross_refs": [
"/imaging/likelihood_function.ipynb"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_1_non_linear_search.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_1_non_linear_search.py",
"summary": "The starting point for most scientific analysis conducted by an Astronomer is that they have observations of a strong lens using a telescope like the Hubble Space Telescope, and seek to learn about the lens galaxy, source galaxy and the Universe from these observations. With **PyAutoLens**, we seek to learn about the lens's mass and ray-tracing, asking questions like how big is the lens galaxy and what does the unlensed source galaxy look like?",
"title": "Tutorial 1: Non-linear Search"
},
{
"contents": [
"PyAutoFit",
"Initial Setup",
"Dataset Auto-Simulation",
"Mask",
"Model",
"Search",
"Search Settings",
"Iterations Per Update",
"Analysis",
"VRAM Use",
"Run Times",
"Model-Fit",
"Result Info",
"Output Folder",
"Unique Identifier",
"Output Folder Contents",
"Result",
"Other Practicalities",
"Wrap Up"
],
"cross_refs": [
"scripts/chapter_2_lens_modeling/tutorial_2_practicalities.py"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_2_practicalities.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_2_practicalities.py",
"summary": "In the last tutorial, we introduced foundational statistical concepts essential for model-fitting, such as parameter spaces, likelihoods, priors, and non-linear searches. Understanding these statistical concepts is crucial for performing model fits effectively.",
"title": "Tutorial 2: Practicalities"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Mask",
"Model",
"Search + Analysis",
"Run Time",
"Result",
"Global and Local Maxima",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_3_realism_and_complexity.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_3_realism_and_complexity.py",
"summary": "In the previous two tutorials, we fitted a fairly crude and unrealistic model: the lens's mass was spherical, as was the source's light. Given most lens galaxies are literally called 'elliptical galaxies' we should probably model their mass as elliptical! Furthermore, we have completely omitted the lens galaxy's light, which in real observations outshines the source's light and therefore must be included in the lens model.",
"title": "Tutorial 3: Realism and Complexity"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Mask",
"Prior Tuning",
"Run Time",
"Result",
"Discussion",
"Approach 2: Reducing Complexity",
"Approach 3: Look Harder",
"Wrap Up"
],
"cross_refs": [
"chapter_optional/tutorial_searches.ipynb"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_4_dealing_with_failure.py",
"summary": "In the previous tutorial we intentionally made our non-linear search infer a local maxima solution and therefore return a physically incorrect lens model. In this tutorial, we will pretend that we have modeled our lens and inferred a local maxima. We introduce three approaches one can take that changes how we fit the model, all of which have the aim of ensuring we infer the global maxima:",
"title": "Tutorial 4: Dealing With Failure"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Mask",
"Linear Light Profiles",
"Run Time",
"Result",
"Intensities",
"Visualization",
"Basis",
"Model Fit",
"Source MGE",
"Multi Gaussian Expansion Benefits",
"Disadvantage of Basis Functions",
"Positive Only Solver",
"Other Basis Functions",
"Wrap Up"
],
"cross_refs": [
"/imaging/features/multi_gaussian_expansion/modeling.py",
"autolens_workspace/scripts/imaging/features/advanced/shapelets/modeling.py"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_5_linear_profiles.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_5_linear_profiles.py",
"summary": "In the previous tutorial we learned how to balance model complexity with our non-linear search in order to infer accurate lens model solutions and avoid failure. We saw how in order to fit a model accurately one may have to parameterize and fit a simpler model with fewer non-linear parameters, at the expense of fitting the data less accurately.",
"title": "Tutorial 5: Linear Profiles"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Mask",
"Model + Analysis",
"Run Time",
"Search",
"Discussion",
"Positions Thresholding",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_6_masking_and_positions.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_6_masking_and_positions.py",
"summary": "We have learnt everything we need to know about non-linear searches to model a strong lens and infer a good lens model solution. Now, lets consider masking in more detail, something we have not given much consideration previously. We'll also learn a neat trick to improve the speed and accuracy of a non-linear search.",
"title": "Tutorial 6: Masking and Positions"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Tracer & Fit",
"Samples",
"Workspace",
"Database",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_7_results.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_7_results.py",
"summary": "In the previous tutorials, each search returned a `Result` object, which we used to plot the maximum log likelihood fit each model-fit. In this tutorial, we'll take a look at the result object in a little more detail.",
"title": "Tutorial 7: Results"
},
{
"contents": [
"Searching Non-linear Parameter Space",
"Cost Per Evaluation",
"JAX",
"Run Time Estimation",
"Data Quantity",
"Wrap Up"
],
"cross_refs": [
"autolens_workspace/scripts/imaging/features/pixelization/cpu_fast_modeling.py",
"chapter_optional/tutorial_searches.py"
],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_8_need_for_speed.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_8_need_for_speed.py",
"summary": "In this chapter, we have learnt how to model strong lenses and how to balance complexity and realism to ensure that we infer a good lens model.",
"title": "Tutorial 8: Need For Speed"
},
{
"contents": [
"Initial Setup",
"Dataset Auto-Simulation",
"Model",
"Search + Analysis",
"Result",
"Prior Passing",
"Run Time",
"Model Fit",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_2_lens_modeling/tutorial_9_search_chaining.ipynb",
"path": "scripts/chapter_2_lens_modeling/tutorial_9_search_chaining.py",
"summary": "Throughout this chapter, we have fitted the data using just one non-linear search. The previous tutorial discussed the run-time cost of doing this: with a single search, the dimensionality of the model, the priors on its parameters and the search settings must all be juggled at once, leaving us little flexibility to trade them off against one another.",
"title": "Tutorial 9: Search Chaining"
},
{
"contents": [
"Initial Setup",
"Mask",
"Simulator",
"Fitting",
"Fit Problems",
"Discussion",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_10_fit_problems.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_10_fit_problems.py",
"summary": "To begin, make sure you have read tutorials 4 and 5 carefully, as a clear understanding of how the Bayesian evidence works is key to understanding the adaption tutorials that close this chapter!",
"title": "Tutorial 10: Fit Problems"
},
{
"contents": [
"Initial Setup",
"Adapt Image",
"Adaption",
"Hilbert",
"Weight Map",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_11_brightness_adaption.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_11_brightness_adaption.py",
"summary": "In the previous tutorial we motivated our need to adapt the pixelization to the source's morphology, such that source pixels congregates in the source's brightest regions regardless of where the source is located in the source-plane.",
"title": "Tutorial 11: Brightness Adaption"
},
{
"contents": [
"Initial Setup",
"Convenience Function",
"Adaptive Regularization",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_12_adaptive_regularization.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_12_adaptive_regularization.py",
"summary": "In tutorial 10, we discussed why the `Constant` regularization scheme was sub-optimal. Different regions of the source demand different levels of regularization, motivating a regularization scheme which adapts to the reconstructed source's surface brightness.",
"title": "Tutorial 12: Adaptive Regularization"
},
{
"contents": [
"Initial Setup",
"Mesh",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_1_pixelizations.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_1_pixelizations.py",
"summary": "In the previous chapters, we used light profiles to model the light of a strong lens's source galaxy, where the light profile was an analytic description of how the luminosity varies as a function of radius. In this chapter, we are instead going to reconstruct the source's light on a pixel-grid, and in this tutorial we will learn how to create a source-plane pixelization.",
"title": "Tutorial 1: Pixelizations"
},
{
"contents": [
"Initial Setup",
"Mappers",
"Mask",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_2_mappers.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_2_mappers.py",
"summary": "In the previous tutorial, we used a pixelization to create a `Mapper`. However, it was not clear what a `Mapper` does, why it was called a mapper and whether it was mapping anything at all!",
"title": "Tutorial 2: Mappers"
},
{
"contents": [
"Initial Setup",
"Pixelization",
"Positive Only Solver",
"Wrap Up",
"Detailed Explanation"
],
"cross_refs": [
"/imaging/features/pixelization/likelihood_function.ipynb"
],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_3_inversions.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_3_inversions.py",
"summary": "In the previous two tutorials, we introduced:",
"title": "Tutorial 3: Inversions"
},
{
"contents": [
"Initial Setup",
"Convenience Function",
"Pixelization",
"Regularization",
"Bayesian Evidence",
"Detailed Description"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_4_bayesian_regularization.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_4_bayesian_regularization.py",
"summary": "So far, we have:",
"title": "Tutorial 4: Bayesian Regularization"
},
{
"contents": [
"Initial Setup",
"Mesh Shape",
"Ray Tracing",
"Border Relocation",
"Source Pixel Centres",
"Interpolation",
"Mapper",
"Mapping Matrix",
"Blurred Mapping Matrix",
"Data Vector",
"Curvature Matrix",
"Unregularized Solve",
"Regularization Matrix",
"Source Reconstruction",
"Image Reconstruction",
"Likelihood Function",
"Chi Squared",
"Regularization Term",
"Complexity Terms",
"Noise Normalization Term",
"Log Evidence",
"Fit",
"Wrap Up"
],
"cross_refs": [
"/imaging/features/pixelization/likelihood_function.ipynb"
],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_5_bayesian_formalism.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_5_bayesian_formalism.py",
"summary": "In tutorials 1 to 4, we built an intuition for how pixelized source reconstruction works: pixelizations place a pixel-grid in the source-plane, mappers pair source-pixels with image-pixels, inversions solve for the source-pixel fluxes that best fit the data, and regularization smooths the solution within a Bayesian framework.",
"title": "Tutorial 5: Bayesian Formalism"
},
{
"contents": [
"Initial Setup",
"Borders",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_6_borders.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_6_borders.py",
"summary": "In the previous tutorials, the source-plane pixel grid perfectly mapped over the traced image-pixel $(y,x)$ coordinates in the source plane. If these pixels mapped to a larger area in the source plane, its pixel-grid would automatically increase its size so as to cover every source-plane coordinate.",
"title": "Tutorial 6: Borders"
},
{
"contents": [
"Initial Setup",
"Unphysical Solutions",
"Brief Description",
"Light Profiles",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_7_lens_modeling.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_7_lens_modeling.py",
"summary": "When modeling complex sources with parametric profiles, we quickly entered a regime where our non-linear search was faced with a parameter space of dimensionality N=20+ parameters. This made the model-fitting inefficient and likely to infer a local maxima.",
"title": "Tutorial 7: Lens Modeling"
},
{
"contents": [
"Initial Setup",
"Advantages and Disadvantages",
"Image Mesh",
"Regularization",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_8_adaptive_pixelization.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_8_adaptive_pixelization.py",
"summary": "In this tutorial we will introduce a new `Pixelization` object, which uses an `Overlay` image-mesh and a `Delaunay` mesh.",
"title": "Tutorial 8: Adaptive Pixelization"
},
{
"contents": [],
"cross_refs": [
"/imaging/features/pixelization/modeling.py"
],
"notebook": "notebooks/chapter_3_pixelizations/tutorial_9_model_fit.ipynb",
"path": "scripts/chapter_3_pixelizations/tutorial_9_model_fit.py",
"summary": "You should now perform lens modeling using a pixelization, which is described fully in the example:",
"title": "Tutorial 9: Model-Fit"
},
{
"contents": [
"Initial Setup",
"Light Versus Mass",
"Mask",
"Approach 1 Noise Scaling",
"Noise Scaling Fit",
"Approach 2 Extra Galaxies Model",
"Extra Galaxy Centres",
"Extra Galaxies Fit",
"Which Approach When",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.ipynb",
"path": "scripts/chapter_4_scaling_up_lensing/tutorial_1_extra_galaxies.py",
"summary": "Welcome to chapter 4 of **HowToLens**, where we scale up lens modeling beyond a single lens galaxy.",
"title": "Tutorial 1: Extra Galaxies"
},
{
"contents": [
"Initial Setup",
"Mask",
"Over Sampling",
"Model",
"Fixing the Mass Centres",
"Model Fit",
"Result",
"Mass Degeneracies",
"No Shared Halo",
"Three Lens Galaxies",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.ipynb",
"path": "scripts/chapter_4_scaling_up_lensing/tutorial_2_multi_galaxy.py",
"summary": "In the previous tutorial, we learned how to deal with extra galaxies near a strong lens \u2014 nuisance objects whose light contaminates the data but which play no meaningful role in the lensing itself. We removed their emission from the analysis, or gave them a heavily restricted model, and the single dominant lens galaxy remained the star of the show.",
"title": "Tutorial 2: Multi-Galaxy Lenses"
},
{
"contents": [
"Mass Follows Light",
"Initial Setup",
"Mask",
"Measured Luminosities",
"The Anchor",
"Over Sampling",
"Light Via MGE",
"Scaling Relation",
"Model",
"Parameter Counts",
"Scaling To Many Galaxies",
"Model Fit",
"Results",
"Limitations",
"Lens Environments",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.ipynb",
"path": "scripts/chapter_4_scaling_up_lensing/tutorial_3_scaling_relation.py",
"summary": "The previous tutorial ended on a warning: every deflector we add to a lens model brings its own free parameters. Two galaxies were manageable, but each one cost us a mass profile's worth of dimensions, and the arithmetic only gets worse. A group-scale lens may have ten member galaxies, a cluster hundreds. If every member keeps its own free mass, the parameter space explodes \u2014 a 100-galaxy cluster with 5 free mass parameters per galaxy is a 500-dimensional model, which no non-linear search can sample and no dataset can constrain anyway.",
"title": "Tutorial 3: Scaling Relations"
},
{
"contents": [
"Initial Setup",
"Mask",
"Galaxy Centres",
"The dPIE Profile",
"Fitting a Group",
"A Group Halo?",
"Model Fit",
"Scaling Relation Members",
"The Group Scale Sweet Spot",
"Wrap Up"
],
"cross_refs": [],
"notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_4_group_scale.ipynb",
"path": "scripts/chapter_4_scaling_up_lensing/tutorial_4_group_scale.py",
"summary": "In the previous tutorials we took our first steps beyond the single lens galaxy: we included extra galaxies near the lens in the model, we modeled systems where two or more galaxies of comparable mass share the lensing, and we introduced scaling relations, which tie the mass of a galaxy to its light so that adding more galaxies to a model does not mean adding more free parameters.",
"title": "Tutorial 4: Group Scale"
},
{
"contents": [
"Multi-Plane Ray Tracing",
"Dataset",
"Point Source Modeling",
"Point Datasets",
"The CSV Interface",
"Point Solver",
"Model",
"Analysis + Factor Graph",
"Search",
"Model Fit",
"Results",
"Customization",
"Wrap Up"
],
"cross_refs": [
"autolens_workspace/scripts/guides/point_source_pairing.py",
"csv_api.py",
"fit.py",
"likelihood_function.py"
],
"notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb",
"path": "scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py",
"summary": "Throughout this chapter we have been climbing a ladder of scale: from a single lens galaxy with an extra galaxy nearby, to multi-galaxy lenses, to galaxy groups whose members share a common dark matter halo.",
"title": "Tutorial 5: Cluster Scale"
},
{
"contents": [
"Shear Catalogues",
"Mass Scales",
"Ray Tracing",
"Source Galaxy Positions",
"Simulate",
"Visualize",
"Mass Map",
"Fitting",
"Model Fit",
"Result",
"Joint Strong and Weak Lensing",
"Wrap Up"
],
"cross_refs": [
"scripts/simulator/weak_lensing.py",
"start_here.py",
"weak/fit.py",
"weak/likelihood_function.py",
"weak/modeling.py",
"weak/simulator.py",
"weak/start_here.py"
],
"notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.ipynb",
"path": "scripts/chapter_4_scaling_up_lensing/tutorial_6_weak_lensing.py",
"summary": "Every tutorial in this series so far \u2014 indeed, every fit performed in all four chapters of **HowToLens** \u2014 has been a *strong* lensing analysis. Strong lensing occurs when a background galaxy lies so close (in projection) to a foreground mass that its light is bent into multiple images, arcs or a complete Einstein ring. These dramatic features are what we simulated, fitted and modeled, from the single galaxy-scale lenses of chapters 1 and 2 up to the group-scale and cluster-scale systems earlier in this chapter.",
"title": "Tutorial 6: Weak Lensing"
},
{
"contents": [
"Nested Sampling",
"Optimizers",
"MCMC"
],
"cross_refs": [],
"notebook": "notebooks/chapter_optional/tutorial_searches.ipynb",
"path": "scripts/chapter_optional/tutorial_searches.py",
"summary": "Up to now, we've always used the non-linear search Nautilus and not considered the input parameters that control its sampling. In this tutorial, we'll consider how we can change these setting to balance finding the global maxima solution with fast run time.",
"title": "Tutorial: Alternative Searches"
},
{
"contents": [
"Dataset Paths",
"Redshifts",
"Galaxy Centres",
"Grids",
"Main Lens Galaxies",
"Scaling Member Galaxies",
"Host Dark Matter Halo",
"Source Galaxies",
"Ray Tracing",
"Point Solver",
"Point Datasets",
"Combined CSV",
"Scaling Galaxies CSV",
"Model CSVs",
"Tracer json",
"Imaging",
"Visualize"
],
"cross_refs": [
"/cluster/csv_api.py",
"/cluster/simulator.ipynb"
],
"notebook": "notebooks/simulator/cluster.ipynb",
"path": "scripts/simulator/cluster.py",
"summary": "This script simulates a strong lens on the 'cluster' scale: 2 main lens galaxies (a brightest cluster galaxy and a satellite), 10 lower-mass cluster member galaxies on a luminosity-mass scaling relation, a cluster-scale dark matter halo not tied to any individual galaxy, and 2 multiply-imaged background source galaxies at *different* redshifts (z = 1.0 and z = 2.0) \u2014 a genuine multi-plane lens.",
"title": "Simulator: Cluster"
},
{
"contents": [
"Dataset Paths",
"Grid",
"Galaxy Centres",
"Over Sampling",
"PSF / Simulator",
"Main Lens Galaxy",
"Member Galaxies",
"Source Galaxy",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json",
"Centre JSON Files",
"Positions"
],
"cross_refs": [
"/group/simulator.ipynb"
],
"notebook": "notebooks/simulator/group.ipynb",
"path": "scripts/simulator/group.py",
"summary": "This script simulates `Imaging` of a 'group-scale' strong lens, which is used in chapter 4 of the **HowToLens** lectures to illustrate lens modeling at the group scale.",
"title": "Simulator: Group Scale Lens"
},
{
"contents": [
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json"
],
"cross_refs": [
"/interferometer/simulator.ipynb"
],
"notebook": "notebooks/simulator/interferometer.ipynb",
"path": "scripts/simulator/interferometer.py",
"summary": "This script simulates `Interferometer` data of a 'galaxy-scale' strong lens, as would be observed by a radio or sub-mm interferometer like ALMA or the JVLA.",
"title": "Simulator: Interferometer"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Extra Galaxy",
"Output",
"Mask Extra Galaxy",
"Visualize",
"Tracer json",
"Extra Galaxy Centre"
],
"cross_refs": [
"/imaging/simulator.ipynb"
],
"notebook": "notebooks/simulator/lens_extra_galaxy.ipynb",
"path": "scripts/simulator/lens_extra_galaxy.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' strong lens which is identical to the `lens_sersic` dataset simulated for chapter 2 (lens light + mass + lensed source), but with one extra galaxy located a few arc-seconds from the lens galaxy.",
"title": "Simulator: Lens With Extra Galaxy"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json"
],
"cross_refs": [
"/imaging/simulator.ipynb",
"start_here.py"
],
"notebook": "notebooks/simulator/lens_sersic.ipynb",
"path": "scripts/simulator/lens_sersic.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' which is identical to the `simple` simulated in the `start_here.py` script, but where the lens galaxy's light is an `Sersic` profile.",
"title": "Simulator: Simple Sersic Lens"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json"
],
"cross_refs": [
"/imaging/simulator.ipynb"
],
"notebook": "notebooks/simulator/lens_x2.ipynb",
"path": "scripts/simulator/lens_x2.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' lens where there are two lens galaxies, each with their own light and mass profiles.",
"title": "Simulator: Lens x2"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json"
],
"cross_refs": [
"/imaging/simulator.ipynb"
],
"notebook": "notebooks/simulator/lens_x3.ipynb",
"path": "scripts/simulator/lens_x3.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' lens where there are three lens galaxies, each with their own light and mass profiles, which all contribute significantly to the lensing of a single background source.",
"title": "Simulator: Lens x3"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Mask Extra Galaxies",
"Tracer json"
],
"cross_refs": [
"/imaging/simulator.ipynb",
"autolens_workspace/notebooks/imaging/features/no_lens_light/modeling.ipynb",
"autolens_workspace/scripts/imaging/features/pixelization/fit.py",
"autolens_workspace/scripts/imaging/features/pixelization/modeling.py",
"start_here.py"
],
"notebook": "notebooks/simulator/no_lens_light.ipynb",
"path": "scripts/simulator/no_lens_light.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' which is identical to the `simple` simulated in the `start_here.py` script, but where the lens galaxy's light is omitted.",
"title": "Simulator: No Lens Light"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json"
],
"cross_refs": [
"/imaging/simulator.ipynb",
"start_here.py"
],
"notebook": "notebooks/simulator/no_lens_light__mass_sis.ipynb",
"path": "scripts/simulator/no_lens_light__mass_sis.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' which is identical to the `simple` simulated in the `start_here.py` script, but where the lens galaxy's light is omitted and the lens's mass distribution is a Singular Isothermal Sphere.",
"title": "Simulator: SIS"
},
{
"contents": [
"Model",
"Dataset Paths",
"Simulate",
"Ray Tracing",
"Output",
"Visualize",
"Tracer json"
],
"cross_refs": [
"/imaging/simulator.ipynb"
],
"notebook": "notebooks/simulator/source_complex.ipynb",
"path": "scripts/simulator/source_complex.py",
"summary": "This script simulates `Imaging` of a 'galaxy-scale' strong lens where the source galaxy's light is more complex than other examples, being composed of 4 Sersics.",
"title": "Simulator: Source Complex"
},
{
"contents": [
"Dataset Paths",
"Ray Tracing",
"Source Positions",
"Simulator",
"Output",
"Visualize"
],
"cross_refs": [
"/weak/simulator.ipynb"
],
"notebook": "notebooks/simulator/weak_lensing.ipynb",
"path": "scripts/simulator/weak_lensing.py",
"summary": "This script simulates a weak gravitational lensing shear catalogue. Unlike the imaging simulators (which produce a 2D image of the lensed source) the weak-lensing simulator produces a *catalogue* of (gamma_2, gamma_1) shear measurements at the (y, x) positions of a population of background source galaxies.",
"title": "Simulator: Weak Lensing"
}
]