In the field of modern weather prediction, the accurate classification is essential, impacting critical sectors such as agriculture, aviation, and water resource management. This research presents a weather forecasting model employing two influential classifiers random forest and technique based on gradient boosting, both implemented using the Scikit-learn library. Evaluation is based on key metrics including F1 score, accuracy, recall, and precision, with Gradient Boosting emerging as the superior choice for precipitation prediction. The study examines the performance of Random Forest Regression, Gradient Boosting Regression, and Radial Basis Function Neural Network in forecasting precipitation, drawing on prior research that demonstrated the superiority of the Random Forest algorithm in terms of accuracy and speed. Ensemble methods, particularly the Voting Classifier, a fusion of Random Forest and Gradient Boosting, outperform individual models, offering a promising avenue for advancing weather classification.