Research Article
[Retracted] Sentiment Analysis of Statements on Social Media and Electronic Media Using Machine and Deep Learning Classifiers
Algorithm 1
KNN Algorithm for grouping the similar set of users.
(1) | Formulate the table column with user emotional categories and column with the movie names. | (2) | Load the training data. | (3) | Prepare data by scaling, missing value treatment, and dimensionality reduction as required. | (4) | Find the optimal value for K. | (5) | Predict and recommend a class value for new data. | (6) | Calculate distance from . | (7) | where X = new data point, Xi = training data, distance as per your chosen distance metric. | (8) | Sort these distances in an increasing order with the corresponding train data. | (9) | From this sorted list, select the top “K” rows. | (10) | Find the most frequent class from these chosen “K” rows. It will be the predicted class for recommendation. |
|