ankithpatel commited on
Commit
f01f2ba
·
verified ·
1 Parent(s): dedab40

Update pages/Lifecycle of Machine Learning.py

Browse files
pages/Lifecycle of Machine Learning.py CHANGED
@@ -156,10 +156,58 @@ print(df.head())
156
  st.write("Data Formats:")
157
  format_selected = st.radio(
158
  "Select a format to explore further:",
159
- ("TEXT","IMAGE","VIDEO", "AUDIO")
160
  )
161
-
162
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
 
165
 
 
156
  st.write("Data Formats:")
157
  format_selected = st.radio(
158
  "Select a format to explore further:",
159
+ ("IMAGE","VIDEO", "AUDIO")
160
  )
161
+ #HOW TO READ TEXT
162
+ if format_selected == "IMAGE":
163
+
164
+ st.subheader("IMAGE Data Format")
165
+ st.write("*What is it?*")
166
+ st.write(
167
+ "Photos, medical scans, satellite images. "
168
+ )
169
+
170
+ st.write("*How to Read IMAGE Files?*")
171
+ st.code(
172
+ """
173
+
174
+ pip install opencv-python
175
+ import cv2
176
+
177
+ # Read the image
178
+ image = cv2.imread('example.jpg')
179
+
180
+ # Display the image
181
+ cv2.imshow('Image', image)
182
+ cv2.waitKey(0) # Wait for a key press to close the window
183
+ cv2.destroyAllWindows(
184
+
185
+
186
+
187
+
188
+ """,
189
+ language="python"
190
+ )
191
+
192
+ st.write("*Common Issues When Handling image Files*")
193
+ st.write(
194
+ """
195
+ - data augumentation and overfitting
196
+ - image processing challenges
197
+ - Data Imbalance
198
+ - High Dimensionality
199
+ """
200
+ )
201
+
202
+ st.write("*How to Overcome These Errors/Issues?*")
203
+ st.write(
204
+ """
205
+ - Data Augumentaion.
206
+ - Consistent image processing
207
+ - Handling Class Imbalance.
208
+ - Dimensionality Reduction and Feature Extraction
209
+ """
210
+ )
211
 
212
 
213