shwetashweta05 commited on
Commit
2d64502
·
verified ·
1 Parent(s): 0c3857f

Update pages/4.Life Cycle of ML.py

Browse files
Files changed (1) hide show
  1. pages/4.Life Cycle of ML.py +16 -39
pages/4.Life Cycle of ML.py CHANGED
@@ -1,50 +1,27 @@
1
  import streamlit as st
2
- import json
 
3
 
4
- # Streamlit: Initialize session state for navigation
5
- if "pages" not in st.session_state:
6
- st.session_state.page = "main"
7
-
8
- # Function to navigate between pages
9
- def navigate_to(page_name):
10
- st.session_state.page = page_name
11
-
12
- # Main Page
13
- if st.session_state.page == "main":
14
- st.header("Welcome to the Machine Learning Project Life Cycle")
15
- st.write("""
16
- This application provides insights into the various stages of a Machine Learning project.
17
- Navigate through the different sections to explore each stage in detail.
18
- """)
19
-
20
- # Buttons for navigation
21
-
22
- if st.button("Problem Statement"):
23
- navigate_to("Problem Statement")
24
-
25
- # Problem Statement Page
26
- elif st.session_state.page == "Problem Statement":
27
- st.header("Problem Statement")
28
  st.write("""
29
- A problem statement in machine learning defines the specific issue to solve using data and ML techniques.
30
- **Key elements:**
31
- - What is the problem?
32
- - Why is it important?
33
- - What data is available?
34
- - What is the expected outcome?
35
  """)
36
-
37
  st.write("""
38
- **Example:**
39
  - **Predicting House Prices:**
40
- - Problem: Predict house prices based on features like size, location, and number of bedrooms.
41
- - Importance: Helps buyers make decisions and agents price houses accurately.
42
- - Data: Historical house prices and features.
43
- - Outcome: A model that predicts house prices.
44
  """)
45
 
46
-
47
-
48
  if st.button("**Data Collection**"):
49
  st.switch_page("pages/6.Data Collection.py")
50
  st.write("""
 
1
  import streamlit as st
2
+ import numpy as np
3
+ 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.switch_page("pages/5.Problem Statement.py")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  st.write("""
10
+ **A problem statement in machine learning defines the specific issue you want to solve using data and machine learning techniques. It should clearly explain:**
11
+ - What the problem is
12
+ - Why solving it is important
13
+ - What data is available
14
+ - What the expected outcome will look like
 
15
  """)
 
16
  st.write("""
17
+ **Examples of ML Problem Statements:**
18
  - **Predicting House Prices:**
19
+ - Problem: We want to predict the price of houses based on features like size, location, number of bedrooms, etc.
20
+ - Why: This helps buyers make informed decisions and real estate agents price houses correctly.
21
+ - Data: Historical data about house prices and their features.
22
+ - Expected Outcome: A model that predicts the price of a house given its features.
23
  """)
24
 
 
 
25
  if st.button("**Data Collection**"):
26
  st.switch_page("pages/6.Data Collection.py")
27
  st.write("""