Skip to content

Commit 86dac95

Browse files
committed
15 / 30 : set n_epoch to 1 if CI
1 parent fb3a822 commit 86dac95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

15_optimization/030_Classification_Optimization.ipynb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"metadata": {},
3636
"outputs": [],
3737
"source": [
38+
"import os\n",
39+
"\n",
40+
"\n",
3841
"import matplotlib.pyplot as plt\n",
3942
"import numpy as np\n",
4043
"import numpy.random as nr\n",
@@ -1002,6 +1005,12 @@
10021005
"\n",
10031006
"\n",
10041007
"# Train the model\n",
1008+
"n_epoch = 50\n",
1009+
"\n",
1010+
"# To save time when automatically testing the SW\n",
1011+
"if os.getenv('CI', False):\n",
1012+
" n_epoch = 1\n",
1013+
"\n",
10051014
"model.fit(X, y, epochs=50, batch_size=10)\n",
10061015
"\n",
10071016
"\n",

0 commit comments

Comments
 (0)