Phani1008 commited on
Commit
306c656
Β·
verified Β·
1 Parent(s): 8d502ce

Create Machine Learning vs Deep Learning

Browse files
pages/Machine Learning vs Deep Learning ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Title and Introduction
4
+ st.markdown("""
5
+ <style>
6
+ body {
7
+ font-family: Arial, sans-serif;
8
+ margin: 20px;
9
+ background-color: #121212; /* Dark background */
10
+ color: #e0e0e0; /* Light text for visibility */
11
+ }
12
+ .title {
13
+ text-align: center;
14
+ color: #ffffff; /* White title text */
15
+ font-size: 40px;
16
+ font-weight: bold;
17
+ }
18
+ .subtitle {
19
+ text-align: center;
20
+ color: #bdbdbd; /* Light gray subtitle text */
21
+ font-size: 18px;
22
+ }
23
+ .section {
24
+ background-color: #1e1e1e; /* Darker section background */
25
+ padding: 20px;
26
+ border-radius: 10px;
27
+ margin-bottom: 20px;
28
+ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.6); /* Subtle shadow */
29
+ }
30
+ .section-header {
31
+ color: #81d4fa; /* Light blue section headers */
32
+ font-size: 24px;
33
+ margin-bottom: 10px;
34
+ text-decoration: underline;
35
+ }
36
+ ul {
37
+ list-style-type: none;
38
+ padding: 0;
39
+ }
40
+ ul li {
41
+ background-color: #2e2e2e; /* Slightly lighter background for list items */
42
+ margin: 10px 0;
43
+ padding: 15px;
44
+ border: 1px solid #424242; /* Gray border */
45
+ border-radius: 8px;
46
+ font-size: 16px;
47
+ color: #f5f5f5; /* Light text color */
48
+ }
49
+ table {
50
+ width: 100%;
51
+ border-collapse: collapse;
52
+ margin-top: 20px;
53
+ background-color: #1e1e1e; /* Table background matches sections */
54
+ }
55
+ th, td {
56
+ text-align: left;
57
+ padding: 12px;
58
+ border: 1px solid #424242; /* Gray border for table cells */
59
+ color: #e0e0e0; /* Light text color */
60
+ }
61
+ th {
62
+ background-color: #263238; /* Dark blue-gray for headers */
63
+ color: #ffffff; /* White header text */
64
+ }
65
+ tr:nth-child(even) {
66
+ background-color: #2e2e2e; /* Slightly lighter rows */
67
+ }
68
+ tr:hover {
69
+ background-color: #424242; /* Highlighted row on hover */
70
+ }
71
+ </style>
72
+ <div class="title">Difference Between Machine Learning (ML) and Deep Learning (DL)</div>
73
+ <p class="subtitle">Learn how ML and DL differ in capabilities, requirements, and use cases!</p>
74
+ """, unsafe_allow_html=True)
75
+
76
+ # Machine Learning Section
77
+ st.markdown("""
78
+ <div class="section">
79
+ <div class="section-header">Machine Learning πŸ–₯️</div>
80
+ <ul>
81
+ <li>Uses statistics to understand patterns in data and make predictions πŸ“Š.</li>
82
+ <li>Can learn with less data πŸ“‰.</li>
83
+ <li>Handles structured data; unstructured data must be converted to structured form πŸ”„.</li>
84
+ <li>Requires less memory πŸ§ πŸ’Ύ.</li>
85
+ <li>Trains models in less time ⏱️.</li>
86
+ <li>Can run efficiently on CPUs without requiring powerful hardware πŸ–₯️.</li>
87
+ </ul>
88
+ </div>
89
+ """, unsafe_allow_html=True)
90
+
91
+ # Deep Learning Section
92
+ st.markdown("""
93
+ <div class="section">
94
+ <div class="section-header">Deep Learning πŸ€–</div>
95
+ <ul>
96
+ <li>Uses neural networks to mimic brain-like learning and decision-making 🧠.</li>
97
+ <li>Requires large amounts of data for better accuracy πŸ½οΈπŸ“Š.</li>
98
+ <li>Handles both structured and unstructured data like images, text, and audio πŸ–ΌοΈπŸ“πŸŽ§.</li>
99
+ <li>Requires more memory and storage πŸ§ πŸ’Ύ.</li>
100
+ <li>Takes more time to train due to complex calculations ⏱️.</li>
101
+ <li>Needs GPUs and advanced hardware for efficient processing πŸ–₯οΈπŸ’‘.</li>
102
+ </ul>
103
+ </div>
104
+ """, unsafe_allow_html=True)
105
+
106
+ # Tabular Comparison
107
+ st.markdown("""
108
+ <div class="section">
109
+ <div class="section-header">Comparison Table</div>
110
+ <table>
111
+ <thead>
112
+ <tr>
113
+ <th>Aspect</th>
114
+ <th>Machine Learning (ML)</th>
115
+ <th>Deep Learning (DL)</th>
116
+ </tr>
117
+ </thead>
118
+ <tbody>
119
+ <tr>
120
+ <td>Definition</td>
121
+ <td>Uses algorithms and statistics to learn from data.</td>
122
+ <td>Uses neural networks to mimic brain-like decision-making.</td>
123
+ </tr>
124
+ <tr>
125
+ <td>Data Dependency</td>
126
+ <td>Works well with smaller datasets.</td>
127
+ <td>Requires large datasets for better accuracy.</td>
128
+ </tr>
129
+ <tr>
130
+ <td>Data Type</td>
131
+ <td>Handles structured data only.</td>
132
+ <td>Handles both structured and unstructured data.</td>
133
+ </tr>
134
+ <tr>
135
+ <td>Training Time</td>
136
+ <td>Requires less time to train.</td>
137
+ <td>Requires more time to train.</td>
138
+ </tr>
139
+ <tr>
140
+ <td>Hardware</td>
141
+ <td>Can run on CPUs.</td>
142
+ <td>Requires GPUs and advanced hardware.</td>
143
+ </tr>
144
+ <tr>
145
+ <td>Memory Requirement</td>
146
+ <td>Uses less memory.</td>
147
+ <td>Requires more memory and storage.</td>
148
+ </tr>
149
+ </tbody>
150
+ </table>
151
+ </div>
152
+ """, unsafe_allow_html=True)