Rainfall Prediction
Rainfall Prediction
Rainfall Prediction
ipynb - Colab
year month day tempavg DPavg humidity avg SLPavg visibilityavg windavg Rainfall
year 0
tempavg 0
DPavg 0
humidity avg 0
SLPavg 0
visibilityavg 0
windavg 0
Rainfall 0
dtype: int64
https://colab.research.google.com/drive/1KKIA-THucYMImdBcdRoucGtcC479M2c9#printMode=true 1/5
6/5/24, 6:48 PM Rainfall Prediction.ipynb - Colab
x_train
RandomForestRegressor(random_state=0)
ypred
https://colab.research.google.com/drive/1KKIA-THucYMImdBcdRoucGtcC479M2c9#printMode=true 2/5
6/5/24, 6:48 PM Rainfall Prediction.ipynb - Colab
y_test.shape
(473,)
0.2728975259726836
x_train.shape
(1889, 7)
y_train.shape
(1889,)
https://colab.research.google.com/drive/1KKIA-THucYMImdBcdRoucGtcC479M2c9#printMode=true 3/5
6/5/24, 6:48 PM Rainfall Prediction.ipynb - Colab
https://colab.research.google.com/drive/1KKIA-THucYMImdBcdRoucGtcC479M2c9#printMode=true 4/5
6/5/24, 6:48 PM Rainfall Prediction.ipynb - Colab
humidity
year tempavg DPavg SLPavg visibilityavg windavg
avg
humidity
-0.091357 0.340977 0.731021 1.000000 -0.574413 0.173502 0.101864
avg
<matplotlib.axes._subplots.AxesSubplot at 0x219ec56fd30>
ypred1 #prediction
array([0.5184])
Done
https://colab.research.google.com/drive/1KKIA-THucYMImdBcdRoucGtcC479M2c9#printMode=true 5/5