Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variables not defined
#2
This can not be the whole code since the imports are missing. The main problem is, that you have not defined the function plot_digits. There are two possibilities now. The first one would be that somewhere in the book they introduced this function so that you have to find that part and use it :)
The second would be that it is a function of some module like skilearn or so and you missed that import.
In both ways your compiler is missing this function and since the name of the function is not defined it throws that error :)
Reply


Messages In This Thread
Variables not defined - by Scott - May-21-2018, 08:37 AM
RE: Variables not defined - by ThiefOfTime - May-21-2018, 11:03 AM
RE: Variables not defined - by Scott - May-22-2018, 07:26 AM
RE: Variables not defined - by ThiefOfTime - May-22-2018, 11:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  User-defined function to reset variables? Mark17 3 1,681 May-25-2022, 07:22 PM
Last Post: Gribouillis
  python library not defined in user defined function johnEmScott 2 3,898 May-30-2020, 04:14 AM
Last Post: DT2000
  help (variables) - NameError: name 'Payment' is not defined? Vqlk 5 3,916 Feb-27-2019, 04:57 PM
Last Post: buran
  MySQLdb, problem with query with user-defined variables buran 6 6,448 Feb-03-2017, 06:16 PM
Last Post: buran

Forum Jump:

User Panel Messages

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