Spaces:
Sleeping
Sleeping
Update pages/Machine Learning vs Deep Learning.py
Browse files
pages/Machine Learning vs Deep Learning.py
CHANGED
|
@@ -26,17 +26,69 @@ st.markdown("""
|
|
| 26 |
|
| 27 |
# Adding the table comparison content
|
| 28 |
markdown_content = """
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
"""
|
| 41 |
|
| 42 |
-
st.markdown(markdown_content)
|
|
|
|
| 26 |
|
| 27 |
# Adding the table comparison content
|
| 28 |
markdown_content = """
|
| 29 |
+
<style>
|
| 30 |
+
table {
|
| 31 |
+
font-size: 20px;
|
| 32 |
+
width: 100%;
|
| 33 |
+
border-collapse: collapse;
|
| 34 |
+
}
|
| 35 |
+
table, th, td {
|
| 36 |
+
border: 2px solid black;
|
| 37 |
+
padding: 10px;
|
| 38 |
+
text-align: left;
|
| 39 |
+
}
|
| 40 |
+
th {
|
| 41 |
+
background-color: #f2f2f2;
|
| 42 |
+
}
|
| 43 |
+
</style>
|
| 44 |
+
<h3>Machine Learning vs Deep Learning</h3>
|
| 45 |
+
<table>
|
| 46 |
+
<tr>
|
| 47 |
+
<th>Features</th>
|
| 48 |
+
<th>Machine Learning (ML)</th>
|
| 49 |
+
<th>Deep Learning (DL)</th>
|
| 50 |
+
</tr>
|
| 51 |
+
<tr>
|
| 52 |
+
<td><b>Learning Approach</b></td>
|
| 53 |
+
<td>Uses a statistical approach to analyze data and make predictions.</td>
|
| 54 |
+
<td>Uses neural networks to automatically learn patterns.</td>
|
| 55 |
+
</tr>
|
| 56 |
+
<tr>
|
| 57 |
+
<td><b>Data Requirement</b></td>
|
| 58 |
+
<td>Works well with smaller datasets.</td>
|
| 59 |
+
<td>Requires large amounts of data to perform well.</td>
|
| 60 |
+
</tr>
|
| 61 |
+
<tr>
|
| 62 |
+
<td><b>Feature Engineering</b></td>
|
| 63 |
+
<td>Requires manual feature selection and extraction.</td>
|
| 64 |
+
<td>Automatically learns features from raw data.</td>
|
| 65 |
+
</tr>
|
| 66 |
+
<tr>
|
| 67 |
+
<td><b>Interpretability</b></td>
|
| 68 |
+
<td>Easier to interpret and explain model decisions.</td>
|
| 69 |
+
<td>Harder to interpret due to complex layers in the network.</td>
|
| 70 |
+
</tr>
|
| 71 |
+
<tr>
|
| 72 |
+
<td><b>Computation Power</b></td>
|
| 73 |
+
<td>Can run on CPUs (low computational power).</td>
|
| 74 |
+
<td>Requires GPUs/TPUs (high computational power).</td>
|
| 75 |
+
</tr>
|
| 76 |
+
<tr>
|
| 77 |
+
<td><b>Algorithms Used</b></td>
|
| 78 |
+
<td>Uses models like KNN, Decision Trees, Linear Regression.</td>
|
| 79 |
+
<td>Uses ANN, CNN, RNN for feature extraction and learning.</td>
|
| 80 |
+
</tr>
|
| 81 |
+
<tr>
|
| 82 |
+
<td><b>Training Time</b></td>
|
| 83 |
+
<td>Faster training due to simpler computations.</td>
|
| 84 |
+
<td>Longer training time due to deep layers and complex processing.</td>
|
| 85 |
+
</tr>
|
| 86 |
+
<tr>
|
| 87 |
+
<td><b>Data Types Processed</b></td>
|
| 88 |
+
<td>Works with structured/tabular data.</td>
|
| 89 |
+
<td>Works with images, videos, text, and audio.</td>
|
| 90 |
+
</tr>
|
| 91 |
+
</table>
|
| 92 |
"""
|
| 93 |
|
| 94 |
+
st.markdown(markdown_content, unsafe_allow_html=True)
|