shwetashweta05 commited on
Commit
9025e55
1 Parent(s): d89e884

Update pages/2.Introduction to Data Science.py

Browse files
pages/2.Introduction to Data Science.py CHANGED
@@ -37,5 +37,47 @@ st.write("""
37
  """)
38
 
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
 
 
37
  """)
38
 
39
 
40
+ st.subheader(":red[**What do you mean by Machine Learning**]")
41
+ st.write("**Machine learning**- is a subset of AI, which uses algorithms that learn from data to make predictions. These predictions can be generated through supervised learning, where algorithms learn patterns from existing data, or unsupervised learning, where they discover general patterns in data. ML models can predict numerical values based on historical data, categorize events as true or false, and cluster data points based on commonalities.")
42
+ st.subheader(":red[**Examples of Machine Learning**]")
43
+ st.write("""
44
+ - Gmail uses ML to identify and filter spam emails.
45
+ - Siri or Google Assistant learns to understand your voice commands better over time.
46
+ - Amazon shows products you might like based on your past purchases.
47
+ - Banks use ML to detect unusual transactions and prevent fraud.
48
+ - Cars use ML to understand road signs
49
+ """)
50
+
51
+ st.subheader(":red[**Types of Machine Learning**]")
52
+ st.write("Machine Learning can be divided into three main types based on how the model learns from data:")
53
+
54
+ st.subheader("**1. Supervised Learning**")
55
+ st.write("In supervised learning, the machine is trained using labeled data, meaning the data comes with input-output pairs. The model learns to predict the output from the input by identifying patterns in the data.")
56
+ st.write("""**Examples:**
57
+ - Predicting house prices based on size, location, and number of rooms.
58
+ - Email classification: Sorting emails as "spam" or "not spam."
59
+ """)
60
+
61
+ st.subheader("**Types of Supervised Learning:**")
62
+ st.write("**1.Regression:** Predicting continuous values.Example: Predicting a person’s salary based on their experience.")
63
+ st.write("**2.Classification:** Predicting discrete categories.Example: Determining whether an email is spam or not.")
64
+
65
+ st.subheader("**2. Unsupervised Learning**")
66
+ st.write("In unsupervised learning, the data has no labels. The model identifies hidden patterns or groups within the data without guidance.")
67
+ st.write("""**Examples:**
68
+ - Customer segmentation: Grouping customers based on their buying behavior.
69
+ - Recommendation systems: Suggesting products based on similar users.
70
+ """)
71
+
72
+ st.subheader("**Types of Unsupervised Learning:**")
73
+ st.write("**1.Clustering:** Grouping data points into similar clusters.Example: Grouping movies by genre based on viewers’ preferences.")
74
+ st.write("**Dimensionality Reduction:** Reducing the number of features in the data.Example: Compressing image data for faster processing.")
75
+
76
+ st.subheader("**3. Reinforcement Learning**")
77
+ st.write("Reinforcement learning is about learning by trial and error. The model learns to make a sequence of decisions to maximize a reward.")
78
+ st.write("""**Examples:**
79
+ - Learning to drive by interacting with the road environment.
80
+ - Training a robot to walk by rewarding good steps.
81
+ """)
82
 
83