Python Forum
Regarding index out of bounds error and implementing Loop error in backpropagation al
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regarding index out of bounds error and implementing Loop error in backpropagation al
#7
The line numbers in the program don't match the error.
The error is on line 45, not 35
So there are 10 lines of code missing from the listing.
add the following before the 2nd loop
      for i in range(0, len(s)):
          print('Before 2nd loop, i: {}, len(s): {}'.format(i, len(s)))
          for k in range(0, len(s[i])):
and show printout just before failure.
Reply


Messages In This Thread
RE: Regarding index out of bounds error and implementing Loop error in backpropagation al - by Larz60+ - Apr-20-2018, 09:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Index out of range error standenman 0 1,090 May-22-2023, 10:35 PM
Last Post: standenman
  Implementing a Lowpass Filter Madridista 5 2,251 Nov-08-2022, 06:41 PM
Last Post: Madridista
  I get "N/A" labels when implementing object detection hobbyist 0 996 Aug-17-2022, 12:35 PM
Last Post: hobbyist
  IndexError: index 0 is out of bounds for axis 0 with size 0 atomxkai 2 5,453 Mar-03-2021, 08:26 AM
Last Post: atomxkai
  [split] Getting Index Error - list index out of range krishna 2 2,603 Jan-09-2021, 08:29 AM
Last Post: buran
  IndexError: index 0 is out of bounds for axis 0 with size 0 tmhsa 0 5,303 Apr-24-2020, 10:00 AM
Last Post: tmhsa
  Getting Index Error - list index out of range RahulSingh 2 6,143 Feb-03-2020, 07:17 AM
Last Post: RahulSingh
  IndexError: index out of bounds LeoGER 3 10,643 Sep-05-2019, 02:05 PM
Last Post: LeoGER
  Unable to identify Tuple index error appmkl 4 4,682 Jun-28-2019, 10:12 AM
Last Post: appmkl
  Can you help me with this error? IndexError: invalid index of a 0-dim tensor. DerBerliner 1 4,172 Feb-28-2019, 05:47 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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