Przeglądaj źródła

Cosmetic changes

Martin Horvat 2 dni temu
rodzic
commit
f6bb516138

+ 4 - 4
notebooks/logit_all_models.ipynb

@@ -99,7 +99,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
+   "execution_count": null,
    "id": "f8e352bec94c",
    "metadata": {},
    "outputs": [],
@@ -109,7 +109,7 @@
     "probs = [alpha / 2, 1 - alpha / 2]\n",
     "\n",
     "# Reproducibility: pass this seed to every stochastic calculation.\n",
-    "random_seed = logistic.DEFAULT_RANDOM_SEED\n"
+    "random_seed = logistic.DEFAULT_RANDOM_SEED"
    ]
   },
   {
@@ -134,13 +134,13 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 6,
+   "execution_count": null,
    "id": "39cbb1957ccb",
    "metadata": {},
    "outputs": [],
    "source": [
     "results_path = results_root / \"linear\"\n",
-    "results_path.mkdir(parents=True, exist_ok=True)\n"
+    "results_path.mkdir(parents=True, exist_ok=True)"
    ]
   },
   {

+ 2 - 1
notebooks/logit_mono-cubic4paper.ipynb

@@ -38,7 +38,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": null,
    "id": "3b351af7",
    "metadata": {},
    "outputs": [],
@@ -57,6 +57,7 @@
     "\n",
     "# general setting\n",
     "np.set_printoptions(precision=16)\n",
+    "\n",
     "# Reproducibility: pass this seed to every stochastic calculation.\n",
     "random_seed = logistic.DEFAULT_RANDOM_SEED\n",
     "width=5\n",

+ 2 - 3
notebooks/logit_review_boots.ipynb

@@ -33,8 +33,8 @@
     "# Assumes this notebook is in <project>/notebooks/.\n",
     "project_root = Path.cwd().parent\n",
     "src_dir = project_root / 'src'\n",
-    "if str(src_dir) not in sys.path:\n",
-    "    sys.path.insert(0, str(src_dir))"
+    "\n",
+    "if str(src_dir) not in sys.path: sys.path.insert(0, str(src_dir))"
    ]
   },
   {
@@ -50,7 +50,6 @@
     "import seaborn as sns\n",
     "from scipy.stats import norm\n",
     "\n",
-    "\n",
     "from irae_risk import data, logistic"
    ]
   },