Predicting Humidity with Temperature Using Machine Learning

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


What you need

Pandas loading

Data Preprocessing

1.) Removing Missing values

Head Values
Null values
No Null Values

2.) Removing Outliers

Dataset after cleaning

Feature Transformation

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

Feature Coding

Feature coding for precip type


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




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