Update Week 2 Programming Assignment.ipynb
This is where you go wrong we have to add "seed =seed" and "classes=['classroom','conference_room','church_outdoor']"
This commit is contained in:
parent
84482561a2
commit
409aac3753
|
@ -179,14 +179,14 @@
|
||||||
" The seed argument should be passed to the flow_from_directory method.\n",
|
" The seed argument should be passed to the flow_from_directory method.\n",
|
||||||
" \n",
|
" \n",
|
||||||
" \"\"\"\n",
|
" \"\"\"\n",
|
||||||
" # I couldn't get this one right. If you get it let me know So, I can recitfy.\n",
|
"
|
||||||
" image_data_gen = image_data_generator.flow_from_directory(\n",
|
" image_data_gen = image_data_generator.flow_from_directory(\n",
|
||||||
" directory = directory,\n",
|
" directory = directory,\n",
|
||||||
|
" classes=['classroom','conference_room','church_outdoor'],\n",
|
||||||
" batch_size = 20,\n",
|
" batch_size = 20,\n",
|
||||||
" target_size = (64,64),\n",
|
" target_size = (64,64),\n",
|
||||||
" \n",
|
" seed=seed,\n",
|
||||||
" class_mode = \"categorical\"\n",
|
" class_mode = \"categorical\"\n",
|
||||||
" \n",
|
|
||||||
" )\n",
|
" )\n",
|
||||||
" return image_data_gen\n",
|
" return image_data_gen\n",
|
||||||
" "
|
" "
|
||||||
|
|
Loading…
Reference in New Issue