Question: NameError: name ' X _ train' is not defined In [ 1 0 5 . . . print ( X _ train.getrow ( 3 )

NameError: name 'X_train' is not defined
In [105... print(X_train.getrow(3).toarray())
NameError
ra11 Tn [1a5], line 1
4 of 18 traceback (most recent call last)
ame 'X_train' is not defined
about:srcdoc
Page 3 of 18
chapter_06
724?24,4:13 PMabout:srcdocPage 4 of 18chapter_067//24//24,4:13 PM
NameError: name ' X _ train' is not defined In [

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!