diff --git a/book/cap05-construir_pipelines/sec5-1-prefect.md b/book/cap05-construir_pipelines/sec5-1-prefect.md index d586cf7..4649c82 100644 --- a/book/cap05-construir_pipelines/sec5-1-prefect.md +++ b/book/cap05-construir_pipelines/sec5-1-prefect.md @@ -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 diff --git a/book/cap06-acompanhamento_de_experimentos/sec6-1-hydra.ipynb b/book/cap06-acompanhamento_de_experimentos/sec6-1-hydra.ipynb index e9cb155..8aad207 100644 --- a/book/cap06-acompanhamento_de_experimentos/sec6-1-hydra.ipynb +++ b/book/cap06-acompanhamento_de_experimentos/sec6-1-hydra.ipynb @@ -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. " ] }, @@ -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", @@ -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", @@ -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", @@ -234,7 +242,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Override Default Parameters" + "### Sobrescrever Parâmetros Padrão" ] }, { @@ -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", @@ -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", @@ -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" }, @@ -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