Update app.py
Browse files
app.py
CHANGED
|
@@ -119,18 +119,18 @@ st.write(f"A Collection of ANN Models with a 1-xReLU-1 Architecture for Basic 1D
|
|
| 119 |
# # Level 6: Neurons count dropdown, based on selected function
|
| 120 |
# neurons = st.selectbox("Select Neurons Count", list(folder_hierarchy[initialisation][sampleSize][batchSize][epochs][functions].keys()))
|
| 121 |
|
| 122 |
-
|
| 123 |
-
initialisation = st.sidebar.selectbox("Select Initialisation", list(folder_hierarchy.keys()))
|
| 124 |
-
sampleSize = st.sidebar.selectbox("Select Sample Size", list(folder_hierarchy[initialisation].keys()))
|
| 125 |
-
batchSize = st.sidebar.selectbox("Select Batch Size", list(folder_hierarchy[initialisation][sampleSize].keys()))
|
| 126 |
-
epochs = st.sidebar.selectbox("Select Epochs Count", list(folder_hierarchy[initialisation][sampleSize][batchSize].keys()))
|
| 127 |
-
functions = st.sidebar.selectbox("Select Neurons Count", list(folder_hierarchy[initialisation][sampleSize][batchSize][epochs].keys()))
|
| 128 |
-
neurons = st.sidebar.selectbox("Select Neurons Count", list(folder_hierarchy[initialisation][sampleSize][batchSize][epochs][functions].keys()))
|
| 129 |
|
| 130 |
# Display the selected values
|
| 131 |
st.write(f"You selected: {initialisation} : {sampleSize} : {batchSize} : {epochs} : {functions} : {neurons}")
|
| 132 |
|
| 133 |
-
modelPath = os.path.join(os.getcwd(), initialisation, sampleSize, batchSize, epochs, functions, neurons);
|
| 134 |
model = keras.models.load_model(modelPath);
|
| 135 |
|
| 136 |
visualiser = NNVisualiser(model);
|
|
|
|
| 119 |
# # Level 6: Neurons count dropdown, based on selected function
|
| 120 |
# neurons = st.selectbox("Select Neurons Count", list(folder_hierarchy[initialisation][sampleSize][batchSize][epochs][functions].keys()))
|
| 121 |
|
| 122 |
+
repo = st.sidebar.selectbox("Select Model Repository",list(folder_hierarchy.keys()))
|
| 123 |
+
initialisation = st.sidebar.selectbox("Select Initialisation", list(folder_hierarchy[repo].keys()))
|
| 124 |
+
sampleSize = st.sidebar.selectbox("Select Sample Size", list(folder_hierarchy[repo][initialisation].keys()))
|
| 125 |
+
batchSize = st.sidebar.selectbox("Select Batch Size", list(folder_hierarchy[repo][initialisation][sampleSize].keys()))
|
| 126 |
+
epochs = st.sidebar.selectbox("Select Epochs Count", list(folder_hierarchy[repo][initialisation][sampleSize][batchSize].keys()))
|
| 127 |
+
functions = st.sidebar.selectbox("Select Neurons Count", list(folder_hierarchy[repo][initialisation][sampleSize][batchSize][epochs].keys()))
|
| 128 |
+
neurons = st.sidebar.selectbox("Select Neurons Count", list(folder_hierarchy[repo][initialisation][sampleSize][batchSize][epochs][functions].keys()))
|
| 129 |
|
| 130 |
# Display the selected values
|
| 131 |
st.write(f"You selected: {initialisation} : {sampleSize} : {batchSize} : {epochs} : {functions} : {neurons}")
|
| 132 |
|
| 133 |
+
modelPath = os.path.join(os.getcwd(), repo, initialisation, sampleSize, batchSize, epochs, functions, neurons);
|
| 134 |
model = keras.models.load_model(modelPath);
|
| 135 |
|
| 136 |
visualiser = NNVisualiser(model);
|