Spaces:
Runtime error
Runtime error
Krzysiek111
commited on
Commit
•
e388a7f
1
Parent(s):
517420b
refactoring part1 - minor perf updates, removed single letter names, moved functions to separate files
Browse files
app.py
CHANGED
@@ -8,16 +8,12 @@ from predict import predict_series
|
|
8 |
|
9 |
points_granularity = 0.25
|
10 |
test_len = 8
|
11 |
-
|
12 |
-
|
13 |
#TODO: Refactor this module
|
14 |
|
15 |
st.set_page_config(page_title='RNN Playground')
|
16 |
-
|
17 |
pages = {'Intro': 0, 'Implementation details': 1, 'The model': 2}
|
18 |
choice = pages[st.sidebar.radio("Select the chapter: ", tuple(pages.keys()))]
|
19 |
|
20 |
-
|
21 |
if choice == 0:
|
22 |
st.title("Recurrent Neural Networks playground")
|
23 |
st.subheader("The purpose")
|
@@ -42,7 +38,6 @@ if choice == 0:
|
|
42 |
st.write(""" \n Use the radio buttons on the left to navigate between chapters \n \n \n \n""")
|
43 |
|
44 |
elif choice == 1:
|
45 |
-
|
46 |
st.title(""" \n Implementation details""")
|
47 |
st.subheader("Front-end")
|
48 |
st.write("""\n
|
@@ -138,4 +133,4 @@ else:
|
|
138 |
# Print statistics
|
139 |
st.write("The prediction isn't good enough? Try to change settings in the model setup or increase the dataset length.")
|
140 |
st.write('Training took {} epochs, Mean Squared Error: {:.2e}'.format(result['epochs'], result['loss']))
|
141 |
-
#st.write('Training took {} epochs, Mean Squared Error {}, last loss {}'.format(result['epochs'], result['loss'], result['loss_last']))
|
|
|
8 |
|
9 |
points_granularity = 0.25
|
10 |
test_len = 8
|
|
|
|
|
11 |
#TODO: Refactor this module
|
12 |
|
13 |
st.set_page_config(page_title='RNN Playground')
|
|
|
14 |
pages = {'Intro': 0, 'Implementation details': 1, 'The model': 2}
|
15 |
choice = pages[st.sidebar.radio("Select the chapter: ", tuple(pages.keys()))]
|
16 |
|
|
|
17 |
if choice == 0:
|
18 |
st.title("Recurrent Neural Networks playground")
|
19 |
st.subheader("The purpose")
|
|
|
38 |
st.write(""" \n Use the radio buttons on the left to navigate between chapters \n \n \n \n""")
|
39 |
|
40 |
elif choice == 1:
|
|
|
41 |
st.title(""" \n Implementation details""")
|
42 |
st.subheader("Front-end")
|
43 |
st.write("""\n
|
|
|
133 |
# Print statistics
|
134 |
st.write("The prediction isn't good enough? Try to change settings in the model setup or increase the dataset length.")
|
135 |
st.write('Training took {} epochs, Mean Squared Error: {:.2e}'.format(result['epochs'], result['loss']))
|
136 |
+
#st.write('Training took {} epochs, Mean Squared Error {}, last loss {}'.format(result['epochs'], result['loss'], result['loss_last']))
|