Python Forum
Keras + Matplotlib causing crash
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keras + Matplotlib causing crash
#3
(May-11-2019, 03:51 AM)scidam Wrote: I got MemoryError on my computer, but it is quite weak (it has only 4GB of RAM). When I changed
10000 to 1000 everything works fine, but you have a typo in epochs = range(1, len('acc') + 1); it should be
epochs = list(range(1, len(history_dict['acc']) + 1)).

Thanks for correcting the typo, my copy of the book is obviously a bit out of date, that's how it appears in the text. If you're changing the 10000 to 1000 then surely the training data becomes incomplete? I tried it anyway and I'm still getting the same error, despite also correcting the typo. My macbook has 8gb of ram, and it's not saying anything about memory issues, but jupyter just keeps saying the kernel has crashed Think
Reply


Messages In This Thread
Keras + Matplotlib causing crash - by spearced - May-09-2019, 10:40 AM
RE: Keras + Matplotlib causing crash - by scidam - May-11-2019, 03:51 AM
RE: Keras + Matplotlib causing crash - by spearced - May-17-2019, 09:47 AM
RE: Keras + Matplotlib causing crash - by zljt3216 - Feb-06-2020, 04:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  1st layer tf.keras output shape set at multiple - need help! Afrodizzyjack 0 1,782 Jun-07-2022, 04:53 PM
Last Post: Afrodizzyjack
  issue displaying summary of whole keras CNN model on TensorFlow with python Afrodizzyjack 0 1,619 Oct-27-2021, 04:07 PM
Last Post: Afrodizzyjack
  Understanding Keras and TensorFlow and how to use them bytecrunch 1 2,052 Mar-11-2021, 02:40 PM
Last Post: jefsummers
  Problems feeding live input from my microphone into a keras model (SegFault: 11) zeptozetta 1 2,539 Sep-14-2020, 03:08 AM
Last Post: zeptozetta
  Keras.Predict into Dataframe Finpyth 13 9,559 Aug-31-2020, 07:22 AM
Last Post: hussainmujtaba
  Making a Basic Keras Model - Input Shape and Parameters MattKahn13 0 2,093 Aug-16-2020, 04:36 PM
Last Post: MattKahn13
  How to find what is causing the unboundlocalerror 'crumb' and invalid syntax error? JonathanBanks 1 2,260 Jul-28-2020, 11:46 AM
Last Post: Yoriz
  Error when import Keras Azadfalah 1 2,752 Apr-29-2020, 04:45 AM
Last Post: buran
  Keras Dense layer with wrong input d1r4c 0 1,735 Jan-02-2020, 02:35 PM
Last Post: d1r4c
  Keras: Time series classification midarq 0 1,963 Sep-25-2019, 09:03 AM
Last Post: midarq

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020