Weather Pattern Analysis and Prediction Chaman
Weather Pattern Analysis and Prediction Chaman
Analysis and
Prediction
1000
800
600
400
200
Date
Choose KKK:
• Select the number of nearest neighbors to consider.
Compute Distances:
• For a query point, calculate the distance between it and all training points.
Select Neighbors:
• Identify the KKK points closest to the query point.
Vote on Class:
• Determine the majority class among the KKK neighbors.
Predict Class:
• Assign the class with the highest vote to the query point.
K-NN
Classification:
K-Means Clustering:
1. Initialize Centroids
•Randomly select k data points from the dataset as the initial centroids (the center of each cluster).
•These centroids can also be selected using other methods like the K-Means++ to improve convergence speed and quality.
3. Recalculate Centroids
•After assigning all points to clusters, recalculate the centroid of each cluster by taking the mean of all data points in that
cluster.
•This new centroid represents the center of the cluster.
5. Final Clusters
•Once the centroids stabilize, the algorithm has finished, and the final clusters are formed. Each data point belongs to the
cluster whose centroid it is closest to.
K-Means
Clustering:
on haze
days
Insights and Learnings
• Key Takeaways:
• I discovered many types of graphs and
pie charts based on the given data
about weather from the data sheet
• It helped me realise and predict many
types of weather patterns
- Unique insights into the dataset
• Challenges:
• I believe This program was mainly
made for pc or laptop users as it was
surely hard to do from mobile or tab
since we won’t be able to use many
application which the pc or laptop
users could make use of
• Some of the answers for the questions
were hard to get since it required more
steps
• I would recommend this project to be made
simple and easy also for mobile users and
Recommendations: not only for pc or laptop users
- Suggestions for • The explanations were not so clear for new
improvement in learners
future projects.
• We require more examples to solve the
project and more questions
Conclusion
• Recap:
• this project was to Conduct an exploratory data analysis
(EDA),
• Implement K-Nearest Neighbors (KNN) classification for
prediction, and
• Apply K-Means clustering to group weather patterns.
• Project’s purpose was to make us work out our skills we learned
from the course
Broader Implications:
- Value of data science and AI in
solving similar problems
• The value of data science and AI in solving problems extends well beyond a
single use case. These technologies drive efficiency, innovation, and
personalization, while also providing the tools to make more informed, data-
driven decisions across various sectors. By leveraging data and AI, industries
can optimize operations, improve customer experiences, and create
transformative solutions for both businesses and society. As these
technologies continue to evolve, their applications will grow, enabling
deeper insights and more impactful solutions across the globe.
References
• Resources:
• - Tools and software.
1. Excel
2. google
3. orange
4. python
• Student’s Name:
R.CHAMAN
Submission Date:
21.12.2024