Update pages/6_Feature_Engineering.py
Browse files- pages/6_Feature_Engineering.py +63 -32
pages/6_Feature_Engineering.py
CHANGED
|
@@ -76,40 +76,71 @@ st.markdown("""
|
|
| 76 |
</style>
|
| 77 |
""", unsafe_allow_html=True)
|
| 78 |
|
|
|
|
| 79 |
|
| 80 |
-
st.
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
-
st.
|
| 87 |
-
st.markdown('''
|
| 88 |
-
- We are having text data which is natural language where the text is given to machine to understand the natural language
|
| 89 |
-
- Text is converted into vector form with feature extraction techniques using algorithms which helps to convert text iinto vector
|
| 90 |
-
- While converting text into vector information should be preserved
|
| 91 |
-
''')
|
| 92 |
|
| 93 |
-
st.
|
| 94 |
-
|
| 95 |
-
-
|
| 96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
|
| 98 |
-
st.
|
| 99 |
-
st.markdown(
|
| 100 |
-
|
| 101 |
-
<
|
| 102 |
-
<
|
| 103 |
-
<
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
| 107 |
|
| 108 |
-
st.markdown(""
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
</style>
|
| 77 |
""", unsafe_allow_html=True)
|
| 78 |
|
| 79 |
+
st.markdown("<h1 class='header-title'>๐ ๏ธ Feature Engineering ๐</h1>", unsafe_allow_html=True)
|
| 80 |
|
| 81 |
+
st.markdown(
|
| 82 |
+
"""
|
| 83 |
+
<div class='info-box'>
|
| 84 |
+
<p>๐น When we take **existing features** from collected data and create **new useful features**,where this is automatically engineered made from existing features and the technique of creating the features is known as <span class='highlight'>Feature Engineering</span>.</p>
|
| 85 |
+
<p>๐ These engineered features **enhance machine learning models**.</p>
|
| 86 |
+
<p>๐ A subpart of feature engineering is **Feature Extraction**.</p>
|
| 87 |
+
</div>
|
| 88 |
+
""",
|
| 89 |
+
unsafe_allow_html=True
|
| 90 |
+
)
|
| 91 |
|
| 92 |
+
st.markdown("<h2 class='sub-header'>๐ฅ Feature Extraction</h2>", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
st.markdown(
|
| 95 |
+
"""
|
| 96 |
+
<div class='info-box'>
|
| 97 |
+
<p>๐ **Feature Extraction** is the process where text data which is natural language is given to machine to understand the natural language.</p>
|
| 98 |
+
<ul>
|
| 99 |
+
<li>๐ Text is **converted into vectors** using specific algorithms.</li>
|
| 100 |
+
<li>๐ **Preserving meaningful information** is key.</li>
|
| 101 |
+
<li>โ๏ธ Helps in better **text analysis & machine learning**.</li>
|
| 102 |
+
</ul>
|
| 103 |
+
</div>
|
| 104 |
+
""",
|
| 105 |
+
unsafe_allow_html=True
|
| 106 |
+
)
|
| 107 |
|
| 108 |
+
st.markdown("<h1 class='header-title'>๐งญ Vectorization</h1>", unsafe_allow_html=True)
|
| 109 |
+
st.markdown(
|
| 110 |
+
"""
|
| 111 |
+
<div class='info-box'>
|
| 112 |
+
<p>๐ **Vectorization** is the process of converting text into **numerical vectors**.</p>
|
| 113 |
+
<p>๐ก This allows ML models to process text data effectively.</p>
|
| 114 |
+
</div>
|
| 115 |
+
""",
|
| 116 |
+
unsafe_allow_html=True
|
| 117 |
+
)
|
| 118 |
|
| 119 |
+
st.markdown("<h2 class='sub-header'>๐ ๏ธ Vectorization Techniques</h2>", unsafe_allow_html=True)
|
| 120 |
+
st.markdown(
|
| 121 |
+
"""
|
| 122 |
+
<div class='info-box'>
|
| 123 |
+
<p>๐ Basic Vectorization Techniques:</p>
|
| 124 |
+
<ul>
|
| 125 |
+
<li>๐น One-Hot Encoding</li>
|
| 126 |
+
<li>๐น Bag of Words (BoW)</li>
|
| 127 |
+
<li>๐น Term Frequency - Inverse Document Frequency (TF-IDF)</li>
|
| 128 |
+
</ul>
|
| 129 |
+
</div>
|
| 130 |
+
""",
|
| 131 |
+
unsafe_allow_html=True
|
| 132 |
+
)
|
| 133 |
+
|
| 134 |
+
st.markdown(
|
| 135 |
+
"""
|
| 136 |
+
<div class='info-box'>
|
| 137 |
+
<p>๐ Advanced Vectorization Techniques:</p>
|
| 138 |
+
<ul>
|
| 139 |
+
<li>๐ Word Embeddings</li>
|
| 140 |
+
<li>๐ Word2Vec</li>
|
| 141 |
+
<li>โก FastText</li>
|
| 142 |
+
</ul>
|
| 143 |
+
</div>
|
| 144 |
+
""",
|
| 145 |
+
unsafe_allow_html=True
|
| 146 |
+
)
|