Phani1008 commited on
Commit
b7931f1
·
verified ·
1 Parent(s): 306c656

Delete pages/1_Introductio to Data Science.py

Browse files
pages/1_Introductio to Data Science.py DELETED
@@ -1,76 +0,0 @@
1
- import streamlit as st
2
- from streamlit_lottie import st_lottie
3
- import requests
4
-
5
- # Function to load Lottie animations
6
- def load_lottieurl(url: str):
7
- r = requests.get(url)
8
- if r.status_code != 200:
9
- return None
10
- return r.json()
11
-
12
- # Load Lottie animations
13
- ml_animation = load_lottieurl("https://assets2.lottiefiles.com/packages/lf20_i9mtrven.json") # General ML animation
14
- supervised_animation = load_lottieurl("https://assets10.lottiefiles.com/packages/lf20_wykv43rd.json") # Supervised learning animation
15
- unsupervised_animation = load_lottieurl("https://assets9.lottiefiles.com/packages/lf20_gnhb5bgb.json") # Unsupervised learning animation
16
- reinforcement_animation = load_lottieurl("https://assets2.lottiefiles.com/packages/lf20_xldzoar9.json") # Reinforcement learning animation
17
-
18
- # Sidebar for navigation
19
- page = st.sidebar.selectbox("Navigate", ["Home", "Machine Learning Overview"])
20
-
21
- # Home Page
22
- if page == "Home":
23
- st.title("Zero to Hero in Machine Learning 🚀")
24
- st.write("Welcome to the journey of mastering Machine Learning!")
25
- # Add any existing content or Lottie animations for the home page.
26
-
27
- # Machine Learning Overview Page
28
- elif page == "Machine Learning Overview":
29
- st.title("Understanding Machine Learning 🤖")
30
- st.write("""
31
- Machine Learning is a subset of Artificial Intelligence (AI) that allows systems to learn and improve from experience without being explicitly programmed.
32
- It involves the development of algorithms that can identify patterns in data and make predictions or decisions.
33
-
34
- ### Why Machine Learning?
35
- - Automates tasks
36
- - Enables predictive modeling
37
- - Helps in analyzing vast datasets
38
- """)
39
- st_lottie(ml_animation, height=300, key="ml")
40
-
41
- # Types of Machine Learning
42
- st.header("Types of Machine Learning")
43
- st.subheader("1. Supervised Learning")
44
- st.write("""
45
- Supervised Learning involves training a model on labeled data. The algorithm learns to map input data to known output labels.
46
- **Examples:**
47
- - Predicting house prices
48
- - Spam detection in emails
49
- """)
50
- st_lottie(supervised_animation, height=300, key="supervised")
51
-
52
- st.subheader("2. Unsupervised Learning")
53
- st.write("""
54
- Unsupervised Learning is used when the data is not labeled. The algorithm identifies hidden patterns or structures in the data.
55
- **Examples:**
56
- - Customer segmentation
57
- - Anomaly detection
58
- """)
59
- st_lottie(unsupervised_animation, height=300, key="unsupervised")
60
-
61
- st.subheader("3. Reinforcement Learning")
62
- st.write("""
63
- Reinforcement Learning involves training an agent to make decisions by rewarding it for desirable actions and penalizing it for undesirable ones.
64
- **Examples:**
65
- - Self-driving cars
66
- - Game playing (e.g., AlphaGo)
67
- """)
68
- st_lottie(reinforcement_animation, height=300, key="reinforcement")
69
-
70
- # Conclusion
71
- st.header("Conclusion")
72
- st.write("""
73
- Machine Learning is revolutionizing industries and enabling new possibilities.
74
- Understanding its types—Supervised, Unsupervised, and Reinforcement Learning—forms the foundation for exploring this exciting field.
75
- """)
76
-