Spaces:
Running
Running
ashhadahsan
commited on
Commit
·
d3ba134
1
Parent(s):
e59b179
fixed write
Browse files- app.py +4 -4
- requirements.txt +3 -1
app.py
CHANGED
@@ -132,9 +132,9 @@ if st.button("Start"):
|
|
132 |
close_stock = closedf.copy()
|
133 |
close_stock = close_stock[["Date", "close"]]
|
134 |
|
135 |
-
st.write(closedf.shape)
|
136 |
close_stock_train, close_stock_test = train_test_split(close_stock, train_size=0.60)
|
137 |
-
st.write(close_stock_train.shape)
|
138 |
|
139 |
closedfsc, scaler = normalize(closedf=closedf)
|
140 |
training_size = int(len(closedf) * 0.60)
|
@@ -142,8 +142,8 @@ if st.button("Start"):
|
|
142 |
train_set, test_set = split_train_test(
|
143 |
closedfsc=closedfsc, training_size=training_size, test_size=test_size
|
144 |
)
|
145 |
-
st.write(train_set.shape)
|
146 |
-
time_step =
|
147 |
X_train, y_train = create_dataset(train_set, time_step)
|
148 |
X_test, y_test = create_dataset(test_set, time_step)
|
149 |
X_train = X_train.reshape(X_train.shape[0], X_train.shape[1], 1)
|
|
|
132 |
close_stock = closedf.copy()
|
133 |
close_stock = close_stock[["Date", "close"]]
|
134 |
|
135 |
+
# st.write(closedf.shape)
|
136 |
close_stock_train, close_stock_test = train_test_split(close_stock, train_size=0.60)
|
137 |
+
# st.write(close_stock_train.shape)
|
138 |
|
139 |
closedfsc, scaler = normalize(closedf=closedf)
|
140 |
training_size = int(len(closedf) * 0.60)
|
|
|
142 |
train_set, test_set = split_train_test(
|
143 |
closedfsc=closedfsc, training_size=training_size, test_size=test_size
|
144 |
)
|
145 |
+
# st.write(train_set.shape)
|
146 |
+
time_step = int(days/2)
|
147 |
X_train, y_train = create_dataset(train_set, time_step)
|
148 |
X_test, y_test = create_dataset(test_set, time_step)
|
149 |
X_train = X_train.reshape(X_train.shape[0], X_train.shape[1], 1)
|
requirements.txt
CHANGED
@@ -5,4 +5,6 @@ pybitget
|
|
5 |
keras
|
6 |
scikit-learn
|
7 |
matplotlib
|
8 |
-
tqdm
|
|
|
|
|
|
5 |
keras
|
6 |
scikit-learn
|
7 |
matplotlib
|
8 |
+
tqdm
|
9 |
+
tensorflow
|
10 |
+
plotly
|