Predicting Humidity with Temperature Using Machine Learning

A Python tutorial to understand the relationship between Humidity and Temperature to using Machine Learning

sunnyday.jpg

What you need

Pandas loading

Data Preprocessing

1.) Removing Missing values

Head Values
Null values
No Null Values

2.) Removing Outliers

boxplots
Dataset after cleaning

Feature Transformation

histograms
QQ plot and Histogram for Wind Speed
QQ plot and Histogram for Humidity
Histograms after Standardization

Feature Coding

Feature coding for precip type

Scaling

feature scaling
Features after scaling

Correlation Matrix

seaborn plotting
Correlation Matrix

Principal Component Analysis

PCA code
Dataset before Regression

Regression Model

Training Data
Model Evaluation

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akhila Seneviratne

Data Engineer, Journalist and sports stats enthusiast. IT Undergraduate at University of Moratuwa