lokudadalla / predicta1.0---ML-Competition

0 stars 0 forks source link

predicta1.0---ML-Competition

<!DOCTYPE html>

Weather Classification

Project Description

First, I analyze the data to identify the most and least important features. I then remove the less important features. Afterward, I split the data into training and test sets. To improve preprocessing, I use a method named Pipeline and also apply SMOTE to balance the imbalanced classes in the data. I employ XGBoost as the model and fine-tune some hyperparameters to achieve better results and reduce overfitting. Then, I predict using the model and evaluate it to determine its performance. Upon realizing that the F1 scores for "Thunderstorm," "Light Perception," and "Partly Cloudy" were lower compared to others, I added new features to enhance performance. Finally, I reran the model.

Image Description
First Evaluation(before add new features)
Image Description
Final Evaluation(after add new features)
Image Description
Model

Avg Temp Prediction

Project Description

In this code, we're using historical weather data to predict average temperatures using a type of deep learning model called LSTM. We start by preparing the data: removing unnecessary columns, encoding city names, and handling missing values. Then, we split the data into training and testing sets and scale it for the model. The LSTM model is set up with layers for learning patterns in the data. We train the model using the training data and validate its performance with the test data. Finally, we make predictions for future temperatures and adjust them back to their original scale for analysis.

Image Description

Resources

For more details, check out the Wiki.