Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,17 +136,38 @@ if selected_menu == "Introduction":
|
|
| 136 |
elif selected_menu == "The Model":
|
| 137 |
st.title("Neural Networks")
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
st.subheader("Key Terms")
|
| 140 |
|
| 141 |
-
st.write("Convolution Operation: A process in a CNN where a small grid moves over the image and simplifies it by focusing on the important details, like edges and colors, helping the network understand the image better.")
|
| 142 |
st.write(" ")
|
| 143 |
-
st.write("Filter/Kernel: A tiny grid used in CNNs that looks at small parts of the image to find specific features like lines or corners.")
|
| 144 |
st.write(" ")
|
| 145 |
-
st.write("Feature Map: The result you get after a filter scans the image. It shows what the filter noticed, like different textures or shapes in the picture.")
|
| 146 |
st.write(" ")
|
| 147 |
-
st.write("Pooling: A step used to make the image data smaller and easier to manage by simplifying the details but keeping the important parts. It helps the network process images faster.")
|
| 148 |
st.write(" ")
|
| 149 |
-
st.write("Backpropagation: A way the network learns from mistakes. It looks at errors it made in recognizing images and adjusts itself to do better next time.")
|
| 150 |
|
| 151 |
image_path_1 = 'Screenshot 2024-05-03 at 08.01.06.png'
|
| 152 |
image_1 = Image.open(image_path_1)
|
|
|
|
| 136 |
elif selected_menu == "The Model":
|
| 137 |
st.title("Neural Networks")
|
| 138 |
|
| 139 |
+
st.write("Neural networks are computational models designed to mimic the workings of the human brain. They consist of interconnected nodes, called neurons, which work together to process information and learn from data.")
|
| 140 |
+
st.write(" ")
|
| 141 |
+
|
| 142 |
+
st.image("neural_net.png")
|
| 143 |
+
|
| 144 |
+
st.subheader("Learning in Neural Networks")
|
| 145 |
+
|
| 146 |
+
st.write("**Forward Pass:** The input data is passed through the network, layer by layer, producing an output.")
|
| 147 |
+
st.write(" ")
|
| 148 |
+
|
| 149 |
+
st.video("ezgif-6-7827342558.mp4")
|
| 150 |
+
|
| 151 |
+
st.write("**Loss Function:** The network's output is compared to the actual label (for supervised learning), and a loss value is computed to quantify the difference.")
|
| 152 |
+
st.write(" ")
|
| 153 |
+
|
| 154 |
+
st.write("**Backward Pass (Backpropagation):** The loss is used to calculate the gradients, which indicate how much each weight should be adjusted to reduce the error.")
|
| 155 |
+
st.write(" ")
|
| 156 |
+
|
| 157 |
+
st.write("**Optimization:** An optimization algorithm, such as Stochastic Gradient Descent (SGD) or Adam, adjusts the weights based on the gradients, iteratively reducing the loss.")
|
| 158 |
+
st.write(" ")
|
| 159 |
+
|
| 160 |
st.subheader("Key Terms")
|
| 161 |
|
| 162 |
+
st.write("**Convolution Operation:** A process in a CNN where a small grid moves over the image and simplifies it by focusing on the important details, like edges and colors, helping the network understand the image better.")
|
| 163 |
st.write(" ")
|
| 164 |
+
st.write("**Filter/Kernel:** A tiny grid used in CNNs that looks at small parts of the image to find specific features like lines or corners.")
|
| 165 |
st.write(" ")
|
| 166 |
+
st.write("**Feature Map:** The result you get after a filter scans the image. It shows what the filter noticed, like different textures or shapes in the picture.")
|
| 167 |
st.write(" ")
|
| 168 |
+
st.write("**Pooling:** A step used to make the image data smaller and easier to manage by simplifying the details but keeping the important parts. It helps the network process images faster.")
|
| 169 |
st.write(" ")
|
| 170 |
+
st.write("**Backpropagation:** A way the network learns from mistakes. It looks at errors it made in recognizing images and adjusts itself to do better next time.")
|
| 171 |
|
| 172 |
image_path_1 = 'Screenshot 2024-05-03 at 08.01.06.png'
|
| 173 |
image_1 = Image.open(image_path_1)
|