astacn commited on
Commit
0b0dde6
·
verified ·
1 Parent(s): a2f53f8

Update app2.py

Browse files
Files changed (1) hide show
  1. app2.py +12 -1
app2.py CHANGED
@@ -113,4 +113,15 @@ def fit(model, train_data, epochs, batch_size, validation_data):
113
  Custom training loop for the CustomModel.
114
 
115
  Args:
116
- model: The Custom
 
 
 
 
 
 
 
 
 
 
 
 
113
  Custom training loop for the CustomModel.
114
 
115
  Args:
116
+ model: The Custom
117
+
118
+ def predict_stock_codes(data_df):
119
+ # Scale the data using MinMaxScaler
120
+ scaler = MinMaxScaler()
121
+ data_df[['open', 'high', 'low', 'close', 'volume']] = scaler.fit_transform(data_df[['open', 'high', 'low', 'close', 'volume']])
122
+
123
+ #... (rest of the code to predict stock codes)
124
+
125
+ return top_5_stocks
126
+
127
+