We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e0d1ba commit 4e14357Copy full SHA for 4e14357
notebooks/influence_sentiment_analysis.ipynb
@@ -84,6 +84,7 @@
84
}
85
],
86
"source": [
87
+ "import os\n",
88
"from copy import deepcopy\n",
89
"from typing import Sequence\n",
90
"\n",
@@ -130,7 +131,8 @@
130
131
132
"seed = 42\n",
133
"torch.manual_seed(seed)\n",
- "torch.cuda.manual_seed(seed)"
134
+ "torch.cuda.manual_seed(seed)\n",
135
+ "is_CI = os.environ.get(\"CI\")"
136
]
137
},
138
{
@@ -577,8 +579,8 @@
577
579
578
580
581
- "NUM_TRAIN_EXAMPLES = 100\n",
- "NUM_TEST_EXAMPLES = 100\n",
582
+ "NUM_TRAIN_EXAMPLES = 100 if not is_CI else 7\n",
583
+ "NUM_TEST_EXAMPLES = 100 if not is_CI else 5\n",
584
585
"small_train_dataset = (\n",
586
" imdb[\"train\"]\n",
0 commit comments