Closed arpadikuma closed 1 year ago
added the code: df_test = df_test[X_train.columns]
to fix: 'feature names must be in the same order as they were in fit'
which occurs because df_test's order of columns is different from X_train's order at the time of .fit() @mrdbourke
(I have only edited the non-video version of the ipynb, wasn't sure I should touch the video one!)
added the code: df_test = df_test[X_train.columns]
to fix: 'feature names must be in the same order as they were in fit'
which occurs because df_test's order of columns is different from X_train's order at the time of .fit() @mrdbourke
(I have only edited the non-video version of the ipynb, wasn't sure I should touch the video one!)