Menu
support@authoritypapers.com
+1(805) 568 7317

what it means x is not defined and how solve it in 8 nb gaussiannb errs nsplits 1000 5152583

what it means X is not defined and how solve it?


In [8]: nb GaussianNB() errs-[] nsplits-1000 for split in range(nsplits): xtrain, xtest, ytrain, ytest - train_test_split (X, In [8]: nb GaussianNB() errs-[] nsplits-1000 for split in range(nsplits): xtrain, xtest, ytrain, ytest – train_test_split (X, Y) gnb.fit(xtrain, ytrain) YP-gnb.predict (xtest) errs.append(1-accuracy_score (ytest, YP)) print (np.mean(errs), np.std(errs) ) NameError Traceback (most recent call last) in 5 6 7 NameError: name 'X' is not defined

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"GET15"

Order Now