Create a simulation to test 1 month of data in 30 mins

This commit is contained in:
2026-03-11 21:33:19 -07:00
parent 9b5ebb4140
commit d5df9d1014
6 changed files with 156 additions and 9 deletions
+3 -2
View File
@@ -78,10 +78,11 @@ def MakeFeatures(df):
df.drop(col, axis=1, inplace=True)
# Drop rows with null values
df.dropna(inplace=True)
feature_columns = [col for col in df.columns if col != 'Target_Close'] # Dont drop any Target_Close as we need this data for predictions
df.dropna(subset=feature_columns, inplace=True)
# Replace Infinity with 0 -> This fixes the AI mental breakdown
df = df.replace([np.inf, -np.inf], 0)
df.replace([np.inf, -np.inf], 0, inplace=True)
# Replace Infinity with 0 -> This fixes the AI mental breakdown
df['Volume_Chg'] = df['Volume_Chg'].replace([np.inf, -np.inf], 0)