Update app.py
Browse files
app.py
CHANGED
|
@@ -134,8 +134,8 @@ def generate_advanced_features(d, other_data=None):
|
|
| 134 |
other_data = other_data.loc[:, ~other_data.columns.duplicated()]
|
| 135 |
d['relative_strength'] = d['close'] / other_data['close']
|
| 136 |
d['relative_strength_1'] = d['close'].shift(2) / other_data['close'].shift(2)
|
| 137 |
-
|
| 138 |
-
|
| 139 |
|
| 140 |
def create_features_and_labels_with_advanced_features(btc, eth):
|
| 141 |
btc_copy = btc.copy()
|
|
|
|
| 134 |
other_data = other_data.loc[:, ~other_data.columns.duplicated()]
|
| 135 |
d['relative_strength'] = d['close'] / other_data['close']
|
| 136 |
d['relative_strength_1'] = d['close'].shift(2) / other_data['close'].shift(2)
|
| 137 |
+
return d.iloc[:,1:].values
|
| 138 |
+
|
| 139 |
|
| 140 |
def create_features_and_labels_with_advanced_features(btc, eth):
|
| 141 |
btc_copy = btc.copy()
|