Skip to content

Commit

Permalink
gram-pt: sec-6
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vitor-souza authored and HenriqueAJNB committed Nov 30, 2022
1 parent b114d1d commit 7d7a364
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
2 changes: 1 addition & 1 deletion book/cap05-construir_pipelines/sec5-1-prefect.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Para instalar o Prefect, digite:
pip install prefect
```

Se estiver usando o Poetry, então digite:
Se estiver usando o Poetry, então digite:

```bash
poetry add prefect
Expand Down
37 changes: 24 additions & 13 deletions book/cap06-acompanhamento_de_experimentos/sec6-1-hydra.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"pip install hydra-core\n",
"```\n",
"\n",
"Se estiver usando o Poetry, então digite:\n",
"\n",
"```bash\n",
"poetry add hydra-core\n",
"```\n",
"\n",
"O vídeo abaixo mostra alguns recursos simples do Hydra. "
]
},
Expand Down Expand Up @@ -83,7 +89,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Imagine que seu arquivo de configuração YAML tenha esta aparência:\n",
"Imagine que seu arquivo de configuração YAML seja assim:\n",
"\n",
"```yaml\n",
"process:\n",
Expand Down Expand Up @@ -190,9 +196,11 @@
"```bash\n",
"python print_config.py\n",
"```\n",
"deve imprimir:\n",
"\n",
"Deve imprimir:\n",
"\n",
"```yaml\n",
"# From process_2.yaml\n",
"# Do process_2.yaml\n",
"process:\n",
" keep_columns:\n",
" - Income\n",
Expand All @@ -216,7 +224,7 @@
" Single: 1\n",
" Alone: 1\n",
"\n",
"# From main.yaml\n",
"# Do main.yaml\n",
"raw_data:\n",
" path: data/raw/marketing_campaign.csv\n",
"intermediate:\n",
Expand All @@ -234,7 +242,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Override Default Parameters"
"### Sobrescrever Parâmetros Padrão"
]
},
{
Expand Down Expand Up @@ -276,8 +284,9 @@
"```\n",
"\n",
"A saída deve ser a combinação de todos os parâmetros em `main.yaml` e em `process_1.yaml`:\n",
"\n",
"```yaml\n",
"# From process_1.yaml\n",
"# Do process_1.yaml\n",
"process:\n",
" keep_columns:\n",
" - Income\n",
Expand Down Expand Up @@ -307,7 +316,7 @@
" Single: 1\n",
" Alone: 1\n",
" \n",
"# From main.yaml\n",
"# Do main.yaml\n",
"raw_data:\n",
" path: data/raw/marketing_campaign.csv\n",
"intermediate:\n",
Expand All @@ -323,11 +332,8 @@
}
],
"metadata": {
"interpreter": {
"hash": "8c54d2834715e8a6c3cbcb2e88b17b59e88807a53e51ef254c41b68a43495275"
},
"kernelspec": {
"display_name": "Python 3.10.0 64-bit",
"display_name": "Python 3.10.6 ('.venv': poetry)",
"language": "python",
"name": "python3"
},
Expand All @@ -341,9 +347,14 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
"version": "3.10.6"
},
"orig_nbformat": 4
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "b5d12cacdae8bf27b92aca53fcdeec9175c7217f9318b9cadc388edf86eb2e83"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
Expand Down

0 comments on commit 7d7a364

Please sign in to comment.