Update pages/Life Cycle Of Machine Learning.py
Browse files
pages/Life Cycle Of Machine Learning.py
CHANGED
@@ -4,7 +4,7 @@ import pandas as pd
|
|
4 |
|
5 |
st.header(":red[**Life Cycle Of Machine Learning Project**]")
|
6 |
st.write(":blue[Click the button below to explore detailed steps involved in an ML project:]")
|
7 |
-
if st.button("Problem Statement"):
|
8 |
st.write("""
|
9 |
**A problem statement in machine learning defines the specific issue you want to solve using data and machine learning techniques. It should clearly explain:**
|
10 |
- What the problem is
|
@@ -21,7 +21,7 @@ if st.button("Problem Statement"):
|
|
21 |
- Expected Outcome: A model that predicts the price of a house given its features.
|
22 |
""")
|
23 |
|
24 |
-
if st.button("Data Collection"):
|
25 |
st.write("""
|
26 |
**Collecting data is the first and most important step in any machine learning project. This is where you gather the information needed to train your machine learning model.**
|
27 |
|
@@ -43,7 +43,7 @@ if st.button("Data Collection"):
|
|
43 |
- Example: For customer churn prediction, make sure there are no missing customer details like age or usage data.
|
44 |
""")
|
45 |
|
46 |
-
if st.button("Simple EDA"):
|
47 |
st.write("""
|
48 |
**EDA (Exploratory Data Analysis) is the process of exploring your data to understand its structure, patterns, and insights before building a machine learning model.Think of it as getting to know your data better!**
|
49 |
|
@@ -74,7 +74,7 @@ if st.button("Simple EDA"):
|
|
74 |
- Example: Do students with high math marks also score high in science?
|
75 |
""")
|
76 |
|
77 |
-
if st.button("Data Pre-processing"):
|
78 |
st.write("**Data preprocessing is the process of cleaning and preparing raw data so it can be used by a machine learning model. It ensures that the data is in the right format, free from errors, and ready for analysis.**")
|
79 |
st.write("""
|
80 |
**Why is Data Preprocessing Important?**
|
@@ -114,7 +114,7 @@ if st.button("Data Pre-processing"):
|
|
114 |
- Example: Split 80% of the data for training and 20% for testing.
|
115 |
""")
|
116 |
|
117 |
-
if st.button("Exploratory Data Analysis (EDA)"):
|
118 |
st.write("**EDA in Machine Learning (Easy Language)EDA (Exploratory Data Analysis) is like getting to know your dataset before using it in a machine learning model. It helps you understand the data's structure, patterns, and relationships to decide how to process and use it effectively.**")
|
119 |
st.write("""
|
120 |
Why is EDA Important?
|
@@ -148,7 +148,7 @@ if st.button("Exploratory Data Analysis (EDA)"):
|
|
148 |
""")
|
149 |
|
150 |
if st.button("**Feature Engineering**"):
|
151 |
-
st.write("Feature engineering is the process of creating, modifying, or selecting features (columns) in your dataset to make machine learning models work better. Features are the input data that the model uses to learn and make predictions
|
152 |
st.write("""
|
153 |
Why is Feature Engineering Important?
|
154 |
- Improves model accuracy and performance.
|
@@ -183,8 +183,8 @@ if st.button("**Feature Engineering**"):
|
|
183 |
- Use methods like correlation analysis, feature importance scores, or PCA (Principal Component Analysis).
|
184 |
""")
|
185 |
|
186 |
-
if st.button("Training")
|
187 |
-
st.write("Training a machine learning model is the process of teaching the model to make predictions by learning patterns in the data. This is done by showing the model examples (training data) and adjusting it so it performs well
|
188 |
st.write("""
|
189 |
**Steps in Training a Model:**
|
190 |
- **1.Prepare the Data**
|
@@ -211,7 +211,7 @@ if st.button("Training"):
|
|
211 |
- Mean Squared Error (MSE): Average error for numerical predictions.
|
212 |
""")
|
213 |
|
214 |
-
if st.button("Testing"):
|
215 |
st.write("**Testing a machine learning model is the process of checking how well the model works on new, unseen data. This step helps you understand if the model can make accurate predictions or decisions when applied to real-world scenarios.**")
|
216 |
st.write("""
|
217 |
**Why Testing is Important?**
|
@@ -241,7 +241,7 @@ if st.button("Testing"):
|
|
241 |
- Example: If the model struggles with students with low attendance, you might need more training data for that group.
|
242 |
""")
|
243 |
|
244 |
-
if st.button("Deployment"):
|
245 |
st.write("**Deployment is the process of making a trained machine learning model available for real-world use. It allows people or systems to use the model to make predictions or decisions on new data.**")
|
246 |
st.write("""
|
247 |
**Why Deployment is Important:**
|
@@ -273,7 +273,7 @@ if st.button("Deployment"):
|
|
273 |
- Example: A house price prediction model might need updates as market trends change.
|
274 |
""")
|
275 |
|
276 |
-
if st.button("Monitoring"):
|
277 |
st.write("**Monitoring a machine learning model means keeping track of how well it performs after it has been deployed. It helps you make sure the model continues to give accurate predictions when used in the real world.**")
|
278 |
st.write("""
|
279 |
**Why Monitoring is Important:**
|
|
|
4 |
|
5 |
st.header(":red[**Life Cycle Of Machine Learning Project**]")
|
6 |
st.write(":blue[Click the button below to explore detailed steps involved in an ML project:]")
|
7 |
+
if st.button("**Problem Statement**"):
|
8 |
st.write("""
|
9 |
**A problem statement in machine learning defines the specific issue you want to solve using data and machine learning techniques. It should clearly explain:**
|
10 |
- What the problem is
|
|
|
21 |
- Expected Outcome: A model that predicts the price of a house given its features.
|
22 |
""")
|
23 |
|
24 |
+
if st.button("**Data Collection**"):
|
25 |
st.write("""
|
26 |
**Collecting data is the first and most important step in any machine learning project. This is where you gather the information needed to train your machine learning model.**
|
27 |
|
|
|
43 |
- Example: For customer churn prediction, make sure there are no missing customer details like age or usage data.
|
44 |
""")
|
45 |
|
46 |
+
if st.button("**Simple EDA**"):
|
47 |
st.write("""
|
48 |
**EDA (Exploratory Data Analysis) is the process of exploring your data to understand its structure, patterns, and insights before building a machine learning model.Think of it as getting to know your data better!**
|
49 |
|
|
|
74 |
- Example: Do students with high math marks also score high in science?
|
75 |
""")
|
76 |
|
77 |
+
if st.button("**Data Pre-processing**"):
|
78 |
st.write("**Data preprocessing is the process of cleaning and preparing raw data so it can be used by a machine learning model. It ensures that the data is in the right format, free from errors, and ready for analysis.**")
|
79 |
st.write("""
|
80 |
**Why is Data Preprocessing Important?**
|
|
|
114 |
- Example: Split 80% of the data for training and 20% for testing.
|
115 |
""")
|
116 |
|
117 |
+
if st.button("**Exploratory Data Analysis (EDA)**"):
|
118 |
st.write("**EDA in Machine Learning (Easy Language)EDA (Exploratory Data Analysis) is like getting to know your dataset before using it in a machine learning model. It helps you understand the data's structure, patterns, and relationships to decide how to process and use it effectively.**")
|
119 |
st.write("""
|
120 |
Why is EDA Important?
|
|
|
148 |
""")
|
149 |
|
150 |
if st.button("**Feature Engineering**"):
|
151 |
+
st.write("**Feature engineering is the process of creating, modifying, or selecting features (columns) in your dataset to make machine learning models work better. Features are the input data that the model uses to learn and make predictions.**")
|
152 |
st.write("""
|
153 |
Why is Feature Engineering Important?
|
154 |
- Improves model accuracy and performance.
|
|
|
183 |
- Use methods like correlation analysis, feature importance scores, or PCA (Principal Component Analysis).
|
184 |
""")
|
185 |
|
186 |
+
if st.button("**Training**")
|
187 |
+
st.write("**Training a machine learning model is the process of teaching the model to make predictions by learning patterns in the data. This is done by showing the model examples (training data) and adjusting it so it performs well.**")
|
188 |
st.write("""
|
189 |
**Steps in Training a Model:**
|
190 |
- **1.Prepare the Data**
|
|
|
211 |
- Mean Squared Error (MSE): Average error for numerical predictions.
|
212 |
""")
|
213 |
|
214 |
+
if st.button("**Testing**"):
|
215 |
st.write("**Testing a machine learning model is the process of checking how well the model works on new, unseen data. This step helps you understand if the model can make accurate predictions or decisions when applied to real-world scenarios.**")
|
216 |
st.write("""
|
217 |
**Why Testing is Important?**
|
|
|
241 |
- Example: If the model struggles with students with low attendance, you might need more training data for that group.
|
242 |
""")
|
243 |
|
244 |
+
if st.button("**Deployment**"):
|
245 |
st.write("**Deployment is the process of making a trained machine learning model available for real-world use. It allows people or systems to use the model to make predictions or decisions on new data.**")
|
246 |
st.write("""
|
247 |
**Why Deployment is Important:**
|
|
|
273 |
- Example: A house price prediction model might need updates as market trends change.
|
274 |
""")
|
275 |
|
276 |
+
if st.button("**Monitoring**"):
|
277 |
st.write("**Monitoring a machine learning model means keeping track of how well it performs after it has been deployed. It helps you make sure the model continues to give accurate predictions when used in the real world.**")
|
278 |
st.write("""
|
279 |
**Why Monitoring is Important:**
|