Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def fetch_yfinance_data(pair: str, period: str, interval: str) -> pd.DataFrame:
|
|
| 62 |
}, inplace=True)
|
| 63 |
|
| 64 |
return df
|
| 65 |
-
|
| 66 |
# Rolling Window Normalizer
|
| 67 |
class RollingWindowNormalizer:
|
| 68 |
def __init__(self, window=24):
|
|
@@ -152,6 +152,7 @@ def get_data_predict(
|
|
| 152 |
|
| 153 |
btc_data_ = remove_outliers(btc_data_, epsilon)
|
| 154 |
bch_data_ = remove_outliers(bch_data_, epsilon)
|
|
|
|
| 155 |
|
| 156 |
if normalized:
|
| 157 |
# merge with ori if you still want to include historical yf data
|
|
|
|
| 62 |
}, inplace=True)
|
| 63 |
|
| 64 |
return df
|
| 65 |
+
|
| 66 |
# Rolling Window Normalizer
|
| 67 |
class RollingWindowNormalizer:
|
| 68 |
def __init__(self, window=24):
|
|
|
|
| 152 |
|
| 153 |
btc_data_ = remove_outliers(btc_data_, epsilon)
|
| 154 |
bch_data_ = remove_outliers(bch_data_, epsilon)
|
| 155 |
+
print(btc_data_)
|
| 156 |
|
| 157 |
if normalized:
|
| 158 |
# merge with ori if you still want to include historical yf data
|