Browse Source

update 実験パイプライン実行前に実験パッケージの最新化処理を導入

ivis-yoshida 2 years ago
parent
commit
15cee0196b
1 changed files with 30 additions and 7 deletions
  1. 30 7
      WORKFLOW/SECTIONS/base/02_experimental_phase/run_pipeline.ipynb

+ 30 - 7
WORKFLOW/SECTIONS/base/02_experimental_phase/run_pipeline.ipynb

@@ -2,7 +2,7 @@
  "cells": [
   {
    "cell_type": "markdown",
-   "id": "79b4d068-3b7a-4717-aa03-8a077b34af9d",
+   "id": "8db76987",
    "metadata": {},
    "source": [
     "# 実験パイプラインの実行\n",
@@ -12,7 +12,7 @@
   },
   {
    "cell_type": "markdown",
-   "id": "20f2d8a2-3503-4702-b16c-6701eb3dc7ba",
+   "id": "71da3526",
    "metadata": {},
    "source": [
     "## 1. 実験パイプライン情報の取得\n",
@@ -24,7 +24,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "208579b9-070c-449d-bc26-a152ff52e400",
+   "id": "b1d8a854",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -40,10 +40,31 @@
   },
   {
    "cell_type": "markdown",
-   "id": "aafc65db-adf6-4ec5-931d-6bae110ec306",
+   "id": "77ea8bce",
    "metadata": {},
    "source": [
-    "## 2. 実験パイプラインの実行\n",
+    "## 2. 実験パッケージの最新化"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "b4ac08ea",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "for experiment in pipeline:\n",
+    "    %cd $experiment\n",
+    "    !git pull\n",
+    "    %cd ../"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "id": "96b52333",
+   "metadata": {},
+   "source": [
+    "## 3. 実験パイプラインの実行\n",
     "\n",
     "- このステップでは、定義情報に基づいて実験パイプラインを実行します。\n",
     "- 以下のセルを実行してください。"
@@ -52,10 +73,12 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "39552e78-48cb-44cf-86d1-cf3d759f00a9",
+   "id": "8dd4ffaf",
    "metadata": {},
    "outputs": [],
    "source": [
+    "%cd ~/experiments/\n",
+    "\n",
     "import papermill\n",
     "\n",
     "outputs = []\n",
@@ -97,7 +120,7 @@
  ],
  "metadata": {
   "kernelspec": {
-   "display_name": "Python 3 (ipykernel)",
+   "display_name": "Python 3",
    "language": "python",
    "name": "python3"
   },