Shrikrishna commited on
Commit
45e7455
1 Parent(s): 3579bf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -63,7 +63,12 @@ model = load_model("keras_model.h5")
63
 
64
  past_100_days = data_training.tail(100)
65
  final_test_df = past_100_days._append(data_testing, ignore_index=True)
 
 
66
  input_data = scaler.fit_transform(final_test_df)
 
 
 
67
 
68
  #Split data in x_test and y_test
69
  x_test = []
@@ -74,6 +79,8 @@ for i in range(100, input_data.shape[0]):
74
  y_test.append(input_data[i, 0])
75
 
76
  x_test, y_test = np.array(x_test), np.array(y_test)
 
 
77
 
78
  y_predicted = model.predict(x_test)
79
  print("Predicted")
 
63
 
64
  past_100_days = data_training.tail(100)
65
  final_test_df = past_100_days._append(data_testing, ignore_index=True)
66
+ print("Final_test_df")
67
+ print(final_test_df)
68
  input_data = scaler.fit_transform(final_test_df)
69
+ print("input_data")
70
+ print(input_data.shape)
71
+ print(input_data)
72
 
73
  #Split data in x_test and y_test
74
  x_test = []
 
79
  y_test.append(input_data[i, 0])
80
 
81
  x_test, y_test = np.array(x_test), np.array(y_test)
82
+ print(x_test.shape)
83
+ print(y_test.shape)
84
 
85
  y_predicted = model.predict(x_test)
86
  print("Predicted")