Skip to content

Commit 1a97ef2

Browse files
committed
Update app.py
1 parent e4f55cb commit 1a97ef2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

forecasting/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
steps = st.sidebar.slider("Número de pasos del modelo", 2, n_steps - 2, 16, 2)
3434
val_train = st.sidebar.radio("Re-entrenamiento", (False, True))
3535
p_train = st.sidebar.slider("Proporción de entrenamiento", 0.2, 1.0, 0.7, 0.1)
36+
epochs = st.sidebar.slider("Épocas de entrenamiento", 2, 100, 10, 2)
3637

3738
# Generación de los datos
3839
data_ = generate_series(n, n_steps=n_steps, incline=val)
@@ -42,7 +43,8 @@
4243

4344
train, test = create_train_test_set(np.copy(data_scale), p_train=p_train, steps=steps)
4445
if val_train:
45-
neural_network.fit(train[0][:, :, np.newaxis], train[1], verbose=0)
46+
neural_network.fit(train[0][:, :, np.newaxis], train[1], epochs=epochs, verbose=0)
47+
models = {"Neural Network": neural_network}
4648

4749
# Sección de estadísticas descriptivas de los datos
4850
st.header("Estadísticas Descriptivas de los Datos")

0 commit comments

Comments
 (0)