Shafeek Saleem commited on
Commit
242e222
·
1 Parent(s): 289ef57
Files changed (1) hide show
  1. pages/3_Training the Model.py +1 -0
pages/3_Training the Model.py CHANGED
@@ -62,6 +62,7 @@ def create_model_inputs(data, lag, mean_period, target_variable):
62
  X['WindGustDir'] = label_encoder.fit_transform(X['WindGustDir'])
63
  X['WindDir9am'] = label_encoder.fit_transform(X['WindDir9am'])
64
  X['WindDir3pm'] = label_encoder.fit_transform(X['WindDir3pm'])
 
65
  # X = pd.get_dummies(X, columns=['Location', 'WindGustDir', 'WindDir9am', 'WindDir3pm'])
66
  y = df_processed[target_variable + "Tomorrow"].loc[X.index]
67
 
 
62
  X['WindGustDir'] = label_encoder.fit_transform(X['WindGustDir'])
63
  X['WindDir9am'] = label_encoder.fit_transform(X['WindDir9am'])
64
  X['WindDir3pm'] = label_encoder.fit_transform(X['WindDir3pm'])
65
+ X.drop(X.index[-1], inplace=True)
66
  # X = pd.get_dummies(X, columns=['Location', 'WindGustDir', 'WindDir9am', 'WindDir3pm'])
67
  y = df_processed[target_variable + "Tomorrow"].loc[X.index]
68