Work on optimizing the model

This commit is contained in:
derek holloway
2026-02-18 15:17:10 -08:00
parent ef20050c9c
commit bb1c508c99
6 changed files with 250 additions and 220 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ def Predict():
df = features.CleanDF(df)
# Drop our predictor
df.drop('Target_Close_Tomorrow', axis=1, inplace=True)
df.drop('Target_Close', axis=1, inplace=True)
# Lazy load this so it doesnt interfere with yfinance
from keras.models import load_model
@@ -37,6 +37,6 @@ def Predict():
# 'predictions' will be a 2D array, flatten it if you want a simple list
flat_predictions = predictions.flatten().tolist()
print(f"Predicted Target_Close_Tomorrow: {flat_predictions}")
print(f"Predicted Target_Close: {flat_predictions}")
return json.dumps(flat_predictions)