@erigits wrote:
what might be the problem with the following code
import sklearn.linear_model
predictors =['Credit_History','Education','Gender']
x_train = train_modified[predictors].values
y_train = train_modified['Loan_Status'].valueserror:
NameError Traceback (most recent call last)
in ()
5 predictors =['Credit_History','Education','Gender']
6 # Converting predictors and outcome to numpy array
----> 7 x_train = train_modified[predictors].values
8 y_train = train_modified['Loan_Status'].valuesNameError: name 'train_modified' is not defined
Posts: 2
Participants: 2