Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why not accuracy working
#2
The variable l is likely a float, since it comes from division on line 49. That's making your slices on line 53 floats as well, which is not allowed. Use int() to convert l into an integer so you can use it as an index in a slice.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
why not accuracy working - by rajeev1729 - Sep-12-2017, 02:10 PM
RE: why not accuracy working - by ichabod801 - Sep-12-2017, 02:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  number accuracy problem? roym 5 3,244 Dec-24-2021, 07:57 AM
Last Post: roym
  Calculating accuracy on RNN-LSTM model hobbyist 0 7,381 May-14-2021, 08:55 AM
Last Post: hobbyist
  Measure accuracy of Object Detection Shameendra 2 3,697 Nov-19-2018, 01:04 PM
Last Post: Shameendra
  Accuracy of sqrt vndywarhol 1 3,216 Aug-29-2018, 10:14 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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