rcpeters / ashrae-energy-prediction

0 stars 0 forks source link

feature relative humidity #5

Closed rcpeters closed 5 years ago

rcpeters commented 5 years ago

add feature relative humidity

http://bmcnoldy.rsmas.miami.edu/Humidity.html

rcpeters commented 5 years ago

def relative_humidity(Tc,Tdc): E = 6.11*10.0(7.5Tdc/(237.7+Tdc)) Es = 6.1110.0(7.5Tc/(237.7+Tc))
RH = (E/Es)
100 return RH

train['humidity'] = relative_humidity(train.air_temperature, train.dew_temperature).astype(np.float16) https://www.weather.gov/media/epz/wxcalc/vaporPressure.pdf