International Journal of Advanced Research in Computer Science and Software Engineering (IJARCSSE)
The k-nearest neighbor algorithm is a non-parametric machine learning algorithm generally used for classification. It is also known as instance based learning or lazy learning. K-NN algorithm can also be adapted for regression that is for estimating continuous variables. In this paper the researcher endow with a generalized K-nearest algorithm used for predicting a continuous value. In order to better understand the proposed general method is used to forecast the value of maximum humidity. The experimental setup was developed using MATLAB.