carlfeynman commited on
Commit
c004d97
1 Parent(s): 48f5984

style updated

Browse files
Files changed (1) hide show
  1. mnist.ipynb +12 -24
mnist.ipynb CHANGED
@@ -210,24 +210,12 @@
210
  },
211
  {
212
  "cell_type": "code",
213
- "execution_count": 21,
214
  "metadata": {},
215
- "outputs": [
216
- {
217
- "ename": "OSError",
218
- "evalue": "[Errno 30] Read-only file system: './linear_classifier.pkl'",
219
- "output_type": "error",
220
- "traceback": [
221
- "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
222
- "\u001b[0;31mOSError\u001b[0m Traceback (most recent call last)",
223
- "\u001b[1;32m/arun477/vae/mnist.ipynb Cell 9\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> <a href='vscode-notebook-cell://github/arun477/vae/mnist.ipynb#X46sdnNjb2RlLXZmcw%3D%3D?line=0'>1</a>\u001b[0m \u001b[39mwith\u001b[39;00m \u001b[39mopen\u001b[39;49m(\u001b[39m'\u001b[39;49m\u001b[39m./linear_classifier.pkl\u001b[39;49m\u001b[39m'\u001b[39;49m, \u001b[39m'\u001b[39;49m\u001b[39mwb\u001b[39;49m\u001b[39m'\u001b[39;49m) \u001b[39mas\u001b[39;00m model_file:\n\u001b[1;32m <a href='vscode-notebook-cell://github/arun477/vae/mnist.ipynb#X46sdnNjb2RlLXZmcw%3D%3D?line=1'>2</a>\u001b[0m pickle\u001b[39m.\u001b[39mdump(model, model_file)\n",
224
- "\u001b[0;31mOSError\u001b[0m: [Errno 30] Read-only file system: './linear_classifier.pkl'"
225
- ]
226
- }
227
- ],
228
  "source": [
229
- "with open('./linear_classifier.pkl', 'wb') as model_file:\n",
230
- " pickle.dump(model, model_file)"
231
  ]
232
  },
233
  {
@@ -246,7 +234,7 @@
246
  },
247
  {
248
  "cell_type": "code",
249
- "execution_count": 5,
250
  "metadata": {},
251
  "outputs": [
252
  {
@@ -259,15 +247,15 @@
259
  " background-color: #FFFFFF;\n",
260
  " }\n",
261
  " #capture-button {\n",
262
- " background-color: #0074d9; /* Blue background color */\n",
263
- " color: white; /* White text color */\n",
264
  " border: none;\n",
265
  " padding: 10px 20px;\n",
266
  " cursor: pointer;\n",
267
  " font-size: 16px;\n",
268
  " border-radius: 3px;\n",
269
  " margin-top: 10px;\n",
270
- " width: 200px;\n",
271
  " }\n",
272
  " #container {\n",
273
  " display: flex;\n",
@@ -304,7 +292,7 @@
304
  " });\n",
305
  " var captureButton = document.getElementById('capture-button');\n",
306
  " captureButton.addEventListener('click', function () {\n",
307
- " console.log('here....')\n",
308
  " });\n",
309
  "</script>\n"
310
  ],
@@ -325,15 +313,15 @@
325
  " background-color: #FFFFFF;\n",
326
  " }\n",
327
  " #capture-button {\n",
328
- " background-color: #0074d9; /* Blue background color */\n",
329
- " color: white; /* White text color */\n",
330
  " border: none;\n",
331
  " padding: 10px 20px;\n",
332
  " cursor: pointer;\n",
333
  " font-size: 16px;\n",
334
  " border-radius: 3px;\n",
335
  " margin-top: 10px;\n",
336
- " width: 200px;\n",
337
  " }\n",
338
  " #container {\n",
339
  " display: flex;\n",
 
210
  },
211
  {
212
  "cell_type": "code",
213
+ "execution_count": 6,
214
  "metadata": {},
215
+ "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
216
  "source": [
217
+ "# with open('./linear_classifier.pkl', 'wb') as model_file:\n",
218
+ "# pickle.dump(model, model_file)"
219
  ]
220
  },
221
  {
 
234
  },
235
  {
236
  "cell_type": "code",
237
+ "execution_count": 8,
238
  "metadata": {},
239
  "outputs": [
240
  {
 
247
  " background-color: #FFFFFF;\n",
248
  " }\n",
249
  " #capture-button {\n",
250
+ " background-color: #3F52D9; \n",
251
+ " color: white;\n",
252
  " border: none;\n",
253
  " padding: 10px 20px;\n",
254
  " cursor: pointer;\n",
255
  " font-size: 16px;\n",
256
  " border-radius: 3px;\n",
257
  " margin-top: 10px;\n",
258
+ " width: 400px;\n",
259
  " }\n",
260
  " #container {\n",
261
  " display: flex;\n",
 
292
  " });\n",
293
  " var captureButton = document.getElementById('capture-button');\n",
294
  " captureButton.addEventListener('click', function () {\n",
295
+ " // need to image save option\n",
296
  " });\n",
297
  "</script>\n"
298
  ],
 
313
  " background-color: #FFFFFF;\n",
314
  " }\n",
315
  " #capture-button {\n",
316
+ " background-color: #3F52D9; \n",
317
+ " color: white;\n",
318
  " border: none;\n",
319
  " padding: 10px 20px;\n",
320
  " cursor: pointer;\n",
321
  " font-size: 16px;\n",
322
  " border-radius: 3px;\n",
323
  " margin-top: 10px;\n",
324
+ " width: 400px;\n",
325
  " }\n",
326
  " #container {\n",
327
  " display: flex;\n",