Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'list' object not callable
#1
hi
i am new to python. iam working on lstm model. i want to plot graph of loss and accuracy. i know that model history is saved. i have used below code.
var1=history. history['loss']
plt.plot(var1)

but I got an error.

plt.plot(var1)
Traceback (most recent call last):
File "<ipython-input-124-f96da71a5192>", line 1, in <module>
plt.plot(var1)
TypeError: 'list' object is not callable

please help me in removing this error. thank you.
Reply


Messages In This Thread
'list' object not callable - by sidra - Nov-28-2020, 03:06 PM
RE: 'list' object not callable - by bowlofred - Nov-28-2020, 06:43 PM
RE: 'list' object not callable - by sidra - Nov-28-2020, 08:41 PM
RE: 'list' object not callable - by bowlofred - Nov-28-2020, 09:46 PM
RE: 'list' object not callable - by sidra - Nov-29-2020, 11:50 AM
RE: 'list' object not callable - by bowlofred - Nov-29-2020, 04:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error in class: TypeError: 'str' object is not callable akbarza 2 525 Dec-30-2023, 04:35 PM
Last Post: deanhystad
  TypeError: 'NoneType' object is not callable akbarza 4 1,022 Aug-24-2023, 05:14 PM
Last Post: snippsat
  [NEW CODER] TypeError: Object is not callable iwantyoursec 5 1,392 Aug-23-2023, 06:21 PM
Last Post: deanhystad
  Need help with 'str' object is not callable error. Fare 4 861 Jul-23-2023, 02:25 PM
Last Post: Fare
  TypeError: 'float' object is not callable #1 isdito2001 1 1,092 Jan-21-2023, 12:43 AM
Last Post: Yoriz
  'SSHClient' object is not callable 3lnyn0 1 1,178 Dec-15-2022, 03:40 AM
Last Post: deanhystad
  TypeError: 'float' object is not callable TimofeyKolpakov 3 1,476 Dec-04-2022, 04:58 PM
Last Post: TimofeyKolpakov
  add object and name in list 3lnyn0 4 1,312 Nov-24-2022, 07:33 PM
Last Post: buran
  API Post issue "TypeError: 'str' object is not callable" makeeley 2 1,936 Oct-30-2022, 12:53 PM
Last Post: makeeley
  Merge htm files with shutil library (TypeError: 'module' object is not callable) Melcu54 5 1,607 Aug-28-2022, 07:11 AM
Last Post: Melcu54

Forum Jump:

User Panel Messages

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