---
title: "Teaching • Prof. Clécio R. Bom"
description: "Material from courses on Big Data and Astroinformatics, Deep Learning, Basic Electricity and Scientific Methodology, organized by semester."
canonical_url: "https://debom.cbpf.br/teaching"
locale: en
meta:
  "og:description": "Material from courses on Big Data and Astroinformatics, Deep Learning, Basic Electricity and Scientific Methodology, organized by semester."
  "og:image": "https://debom.cbpf.br/_og/d/c_Model.takumi%2Ctitle_Teaching%2Cdescription_~TWF0ZXJpYWwgZnJvbSBjb3Vyc2VzIG9uIEJpZyBEYXRhIGFuZCBBc3Ryb2luZm9ybWF0aWNzLCBEZWVwIExlYXJuaW5nLCBCYXNpYyBFbGVjdHJpY2l0eSBhbmQgU2NpZW50aWZpYyBNZXRob2RvbG9neSwgb3JnYW5pemVkIGJ5IHNlbWVzdGVyLg%2Cp_Ii90ZWFjaGluZyI%2Cs__daQ3Ul7nja27nVY.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Teaching • Prof. Clécio R. Bom"
  "twitter:image": "https://debom.cbpf.br/_og/d/c_Model.takumi%2Ctitle_Teaching%2Cdescription_~TWF0ZXJpYWwgZnJvbSBjb3Vyc2VzIG9uIEJpZyBEYXRhIGFuZCBBc3Ryb2luZm9ybWF0aWNzLCBEZWVwIExlYXJuaW5nLCBCYXNpYyBFbGVjdHJpY2l0eSBhbmQgU2NpZW50aWZpYyBNZXRob2RvbG9neSwgb3JnYW5pemVkIGJ5IHNlbWVzdGVyLg%2Cp_Ii90ZWFjaGluZyI%2Cs__daQ3Ul7nja27nVY.png"
---

> Index of every page on this site: [llms.txt](https://debom.cbpf.br/llms.txt)

**Teaching**

# **Open lectures, problem sets and notebooks.**

Material from courses on Big Data and Astroinformatics, Deep Learning, Basic Electricity and Scientific Methodology, organized by semester.

![Lecture by Clécio R. De Bom at the CBPF auditorium](https://debom.cbpf.br/images/photos/lecture.jpg)

**2021.2**

## **Big Data and Astroinformatics**

#### **Notebooks**

- [Notebook 01 — Open and plot a FITS catalog](https://www.dropbox.com/scl/fi/wgwz0mfhix7m73cvf4w3b/legacy_dr8_class.fits?rlkey=n7zthudix8k8b81jevos5bitx&e=1&dl=0)
- [Notebook 02 — Pandas operations](https://colab.research.google.com/drive/1Q-SDBPhO4xy0qh-WD2pDMeT5J8WTeATK?usp=sharing)
- [Notebook 03 — Image operations](https://colab.research.google.com/drive/13vinuKtCCYJ1oZzXecssC79ZPl_6e_B2?usp=sharing)
- [Notebook 04 — Least squares fit of the Hubble constant](https://colab.research.google.com/drive/1GtyiKpYwuTEpHoOYDC5myK_dHxUMoiqA?usp=sharing)
- [Notebook 05 — Photometric redshifts with a dense neural network](https://colab.research.google.com/drive/14NlIkF3Ric92TX9QiCJvLKO3iAePWp06?usp=sharing)
- [Notebook 06 — Photometric redshifts with Random Forest](https://colab.research.google.com/drive/1dVy5kZHEtDbjl1yvF2TmX3eWh5ADifDW?usp=sharing)
- [Notebook 07 — Convolutional neural networks](https://colab.research.google.com/drive/1Xa_E3BmmxmiwV73rxyhe0bgbv176WRXV?usp=sharing)
- [2021.2 project brainstorm document](https://docs.google.com/document/d/19FQLes6zEvQGJ9RRjAniGE4d2Z-c-S1I/edit?pli=1&tab=t.0#heading=h.w2cvgi7ncyon)

#### **Slides**

- [Lecture 01 — Introduction](https://debom.cbpf.br/docs/teaching/aula01_big_data.pdf)
- [Lecture 02 — Pandas and FITS](https://debom.cbpf.br/docs/teaching/aula02_big_data.pptx)
- [Lecture 03 — Pandas and image processing](https://debom.cbpf.br/docs/teaching/aula03_big_data.pdf)
- [Lecture 05 — Image processing](https://debom.cbpf.br/docs/teaching/aula05_big_data.pdf)
- [Lecture 06 — Image processing and segmentation](https://debom.cbpf.br/docs/teaching/aula06_big_data.pdf)
- [Lecture 07 — Segmentation](https://debom.cbpf.br/docs/teaching/aula07_big_data.pdf)
- [Lecture 08 — SExtractor](https://debom.cbpf.br/docs/teaching/aula08_big_data.pdf)
- Lecture 09 — TOPCAT and AladinUnavailable
- Lecture 10 — Basic statistical conceptsUnavailable
- Lecture 11 — Maximum likelihood estimationUnavailable
- Lecture 12 — Astronomical databases and queriesUnavailable
- Lecture 13 — Maximum likelihood, least squares and logistic regressionUnavailable
- Lecture 14 — Machine Learning and neural networksUnavailable
- Lecture 15 — Machine Learning and neural networks IIUnavailable
- Lecture 16 — Decision trees and Random ForestUnavailable

### **Exercises**

1. 1\. Create a new column from a FITS catalog and save the new catalog.
2. 2\. Estimate the limiting magnitude of the provided catalog using the relation between mag\_err and S/N.
3. 3\. Create your catalog using [SExtractor](https://www.astromatic.net/software/sextractor/)

   ```
   sextractor file_name.fits -c config.sex -PARAMETERS_NAME sex.param -CATALOG_NAME output.fits -CATALOG_TYPE FITS_1.0 -GAIN 8116 -PIXEL_SCALE 0.06 -SEEING_FWHM 0.1 -MAG_ZEROPOINT 25.6651 -PHOT_FLUXFRAC 0.682 -DEBLEND_MINCONT 0.0015 -DEBLEND_NTHRESH 32
   ```

   - Image file (replace “file\_name.fits”): [HST image in the f435 band](https://debom.cbpf.br/docs/teaching/hlsp_frontier_hst_acs-60mas-selfcal_abells1063_f435w_v1.0-epoch1_drz.fits_.zip)
   - Compare with the catalogs from [Molino et al. 2017](https://academic.oup.com/mnras/article/470/1/95/3850500#93924236) · [catalog for this image](https://www.dropbox.com/scl/fi/xvgwx2tv3ouiklrpblj6n/hlsp_clash_hst_ir_rxj224)
   - Create your own sex.param file, referring to the Source Extractor documentation.
4. 4\. Derive your Hubble constant from several datasets: [hubble\_fit\_data](https://debom.cbpf.br/docs/teaching/hubble.zip)
5. 5\. Show that an ordinary least squares fit is equivalent to the maximum likelihood of a Gaussian variable with a linear model.
6. 6\. Show that maximum likelihood for a Bernoulli variable with a linear model is equivalent to minimizing the cross-entropy between predictions and observations.
7. 7\. Show that the minimum of the cross-entropy is reached when both probabilities are equal.

### **Tools**

For Arianna Cortesi's lecture, please install:

[TOPCAT](https://www.star.bris.ac.uk/~mbt/topcat/) [Aladin](https://aladin.u-strasbg.fr/)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://debom.cbpf.br/#website","@type":"WebSite","description":"This is a space to discuss science: Artificial Intelligence (Deep Learning), Astrophysics, Astrostatistics and Petrophysics, interactions between Industry and Academia, promote scientific research and supporting material for classes.","inLanguage":"en-US","name":"Prof. Clécio R. Bom","url":"https://debom.cbpf.br/","publisher":{"@id":"https://debom.cbpf.br/#identity"},"workTranslation":[{"@id":"https://debom.cbpf.br/pt#website"},{"@id":"https://debom.cbpf.br/es#website"},{"@id":"https://debom.cbpf.br/it#website"}]},{"@id":"https://debom.cbpf.br/teaching#webpage","@type":"WebPage","description":"Material from courses on Big Data and Astroinformatics, Deep Learning, Basic Electricity and Scientific Methodology, organized by semester.","name":"Teaching","url":"https://debom.cbpf.br/teaching","isPartOf":{"@id":"https://debom.cbpf.br/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://debom.cbpf.br/teaching"]}],"primaryImageOfPage":{"@id":"https://debom.cbpf.br/#logo"}},{"@id":"https://debom.cbpf.br/#identity","@type":"Organization","alternateName":"CBPF","description":"Unidade de pesquisa do Ministério da Ciência, Tecnologia e Inovação dedicada à pesquisa básica em Física, suas aplicações e à formação científica.","email":"web@cbpf.br","legalName":"Centro Brasileiro de Pesquisas Físicas/CBPF","name":"Centro Brasileiro de Pesquisas Físicas","taxID":"04.044.443/0001-35","telephone":"+55-21-2141-7100","url":"https://cbpf.br","address":{"@type":"PostalAddress","streetAddress":"Rua Dr. Xavier Sigaud, 150","addressLocality":"Rio de Janeiro","addressRegion":"RJ","postalCode":"22290-180","addressCountry":"BR"},"logo":{"@id":"https://debom.cbpf.br/#logo"},"sameAs":["https://www.gov.br/cbpf/pt-br","https://www.instagram.com/cbpfoficial","https://www.facebook.com/cbpf.mctic","https://www.youtube.com/user/CBPFvideos","https://www.linkedin.com/company/cbpf-mcti","https://www.flickr.com/photos/cbpf_mctic/albums","https://x.com/cbpf_mcti","https://twitter.com/cbpf_mcti"]},{"@id":"https://debom.cbpf.br/#logo","@type":"ImageObject","caption":"Centro Brasileiro de Pesquisas Físicas","contentUrl":"https://debom.cbpf.br/icon-512x512-light.png","inLanguage":"en-US","url":"https://debom.cbpf.br/icon-512x512-light.png"}]}
```

## Sitemap

See the full [sitemap](https://debom.cbpf.br/sitemap.md) for all pages.
