---
title: "Minicourses • Prof. Clécio R. Bom"
description: "Minicourses given at the CBPF Schools and at IAG-USP, with slides, videos and ready-to-run notebooks."
canonical_url: "https://debom.cbpf.br/minicourse"
locale: en
meta:
  "og:description": "Minicourses given at the CBPF Schools and at IAG-USP, with slides, videos and ready-to-run notebooks."
  "og:image": "https://debom.cbpf.br/_og/d/c_Model.takumi%2Ctitle_Minicourses%2Cdescription_~TWluaWNvdXJzZXMgZ2l2ZW4gYXQgdGhlIENCUEYgU2Nob29scyBhbmQgYXQgSUFHLVVTUCwgd2l0aCBzbGlkZXMsIHZpZGVvcyBhbmQgcmVhZHktdG8tcnVuIG5vdGVib29rcy4%2Cp_Ii9taW5pY291cnNlIg%2Cs_owR4JPRdEr7E1517.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Minicourses • Prof. Clécio R. Bom"
  "twitter:image": "https://debom.cbpf.br/_og/d/c_Model.takumi%2Ctitle_Minicourses%2Cdescription_~TWluaWNvdXJzZXMgZ2l2ZW4gYXQgdGhlIENCUEYgU2Nob29scyBhbmQgYXQgSUFHLVVTUCwgd2l0aCBzbGlkZXMsIHZpZGVvcyBhbmQgcmVhZHktdG8tcnVuIG5vdGVib29rcy4%2Cp_Ii9taW5pY291cnNlIg%2Cs_owR4JPRdEr7E1517.png"
---

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

**Minicourses**

# **Cosmology and Deep Learning, from blackboard to notebook.**

Minicourses given at the CBPF Schools and at IAG-USP, with slides, videos and ready-to-run notebooks.

![Class of a Deep Learning minicourse](https://debom.cbpf.br/images/photos/minicourse.jpg)

**XIII CBPF School · 2021**

## **Cosmology with Python**

Minicourse given from August 9 to 13, 2021 at the XIII CBPF School, combining cosmology fundamentals with hands-on Python exercises.

#### **Slides**

- [Lecture 01](https://debom.cbpf.br/docs/teaching/xiii-escola-aula01-cosmo.pdf)
- [Lecture 02](https://debom.cbpf.br/docs/teaching/xiii-escola-aula02-cosmo.pdf)
- [Lecture 03](https://debom.cbpf.br/docs/teaching/xiii-escola-aula03-cosmo.pdf)
- [Lecture 04](https://debom.cbpf.br/docs/teaching/xiii-escola-aula04.pdf)
- [Lecture 05](https://debom.cbpf.br/docs/teaching/xiii-escola-aula05-cosmo.pdf)

#### **Notebooks and scripts**

- [1Hubble constant fit — dataset for task 01](https://colab.research.google.com/drive/1GtyiKpYwuTEpHoOYDC5myK_dHxUMoiqA?usp=sharing)
- [2Friedmann equation](https://colab.research.google.com/drive/1n-inLcWa_07en7WyDxxw6pb_Vat_rY2F?usp=sharing)
- [3Cosmological parameters with supernovae](https://colab.research.google.com/drive/1gzg1gy2TF3g5x4aPcznO5525E1mp1anM?usp=sharing)
- 4Strong lensing constraintsUnavailable
- [5Photometric redshifts dataset](https://drive.google.com/file/d/1aayTZuFVPReUx-aj92pSR2hCb2rxu-mh/view)
- [6Power spectrum](https://colab.research.google.com/drive/1-feiOuFt8oOF4AZNENFmRE3Q7QG0mkhk?usp=sharing)
- [7Combining observational probes](https://colab.research.google.com/drive/1koJ6GL_wPjK2Uzfoa5gsCGXf2h5Y29Di?usp=sharing)

Example 1 adapted from [Princeton PHY 209](https://phy.princeton.edu/~phy209/week4/index.html)

**XIII CBPF School · 2021**

## **Deep Learning**

Version of the minicourse given from August 9 to 13, 2021 at the XIII CBPF School, with Prof. Elisangela L. Faria.

#### **Slides**

- [Lecture 01](https://debom.cbpf.br/docs/teaching/aula1-escola2021.pdf)
- [Lecture 02](https://debom.cbpf.br/docs/teaching/aula2-escola2021.pdf)
- [Lecture 03](https://debom.cbpf.br/docs/teaching/aula3-escola2021-ia.pdf)
- Lecture 04
- [Lecture 05](https://debom.cbpf.br/docs/teaching/aula5-escola2021-ia.pdf)

#### **Notebooks and scripts**

- [Strong lensing classifier](https://colab.research.google.com/drive/1Xa_E3BmmxmiwV73rxyhe0bgbv176WRXV?usp=sharing)
- [Interpretation with LIME](https://colab.research.google.com/drive/1oz_9dE5t5M8gK_iam8Kef00epKIfwyVJ?usp=sharing)
- [Autoencoder](https://colab.research.google.com/drive/1k41TcbLfn8DYhipk_3C0MFqPsjn5Oaej?usp=sharing)

**IAG-USP · 2021**

## **Deep Learning at the Data Science course**

Lecture at the IAG-USP Data Science course, in English.

**Previous version**

## **Introduction to Deep Learning**

Eight hours of lectures and eight hours of hands-on work with tutors. The idea is to give a brief but useful introduction to Deep Learning, with a focus on astronomy. If you are not an astronomer, don't worry: all you might miss is the scientific motivation behind the examples and a deeper understanding of the data.

### **To run the examples**

- TensorFlow
- Keras
- Anaconda Python 3
- Matplotlib
- NumPy

#### **Presentations (in English)**

- [Lecture 01](https://debom.cbpf.br/docs/teaching/deepastro-lecture01-2.pdf)
- [Lecture 02](https://debom.cbpf.br/docs/teaching/deepastro-lecture02.pdf)
- [Lecture 03](https://debom.cbpf.br/docs/teaching/deepastro-lecture03.pdf)
- [Lecture 04](https://debom.cbpf.br/docs/teaching/deepastro-lecture04.pdf)

**XII CBPF School · 2019**

## **Deep Learning at the XII School**

Version of the minicourse given from July 29 to August 2, 2019. The first lecture was given by Dr. Márcio Albuquerque.

#### **Slides**

- [Lecture 01](https://debom.cbpf.br/docs/teaching/xii-escola-cbpf-aula01.pdf)
- [Lecture 02](https://debom.cbpf.br/docs/teaching/xii-escola-cbpf-aula02.pdf)
- [Lecture 03](https://debom.cbpf.br/docs/teaching/xii-escola-cbpf-aula03.pdf)
- [Lecture 04](https://debom.cbpf.br/docs/teaching/xii-escola-cbpf-aula04.pdf)

#### **Videos (YouTube, in Portuguese)**

- [Lecture 01](https://www.youtube.com/watch?v=Xw9rpDE0Cbs)
- [Lecture 02](https://www.youtube.com/watch?v=qMedtFLXO0g)
- [Lecture 03](https://www.youtube.com/watch?v=nL4blZf94j8)
- [Lecture 04](https://www.youtube.com/watch?v=mvDsy2W7uIA)

## **Shareable examples**

Short notebooks to experiment with Deep Learning techniques applied to astronomy.

- [The simplest example I know](https://drive.google.com/file/u/0/d/1_mb0zsvIWu8OvFNYS5X-2IaRtjdItE0u/)
- [Strong lensing finder (image classification)](https://colab.research.google.com/drive/1gaNRe8nZSAXKE4kQasdH0kr6iZ9z3CBF)
- [ResNet50 strong lensing finder (image classification)](https://colab.research.google.com/drive/1Q9gZ5fMNTDm5Q31Ij8kvcPzuszOzenud)
- [Unsupervised galaxy classification from spectra (autoencoders and PCA)](https://colab.research.google.com/drive/1dWZ6XkZQBI7a6p-lYOpZNKd_LkeF_d_e)
- [Uncertainty with Concrete Dropout](https://colab.research.google.com/drive/1bKj4leHqQiwmNDRBRM_QjrNHzX9m_LV-)
- [PSF removal (GAN)](https://drive.google.com/file/u/0/d/1C29jy6SwuG3QWU-VvCxobbu0uY7orDLu/)

Examples 1 to 5 were written by Luciana Olívia Dias and Patrick Schubert under my supervision. A similar version of the first example is available at [adventuresinmachinelearning.com](https://github.com/adventuresinML/adventures-in-ml-code/blob/master/keras_cnn.py)

```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/minicourse#webpage","@type":"WebPage","description":"Minicourses given at the CBPF Schools and at IAG-USP, with slides, videos and ready-to-run notebooks.","name":"Minicourses","url":"https://debom.cbpf.br/minicourse","isPartOf":{"@id":"https://debom.cbpf.br/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://debom.cbpf.br/minicourse"]}],"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.
