Vinay Banka’s Post

5. K-Nearest Neighbors (KNN) Used For: Regression & Classification Description: It calculates the distance between the test data and the k-number of the nearest data points from the training data. The test data belongs to a class with a higher number of ‘neighbors’. Regarding the regression, the predicted value is the average of the k chosen training points. Evaluation Metrics: Accuracy, precision, recall, and F1 score -> for classification MSE, R-squared -> for regression 🔗https://lnkd.in/gMxK2vSy 6. Support Vector Machines (SVM) Used For: Regression & Classification Description: This algorithm draws a hyperplane to separate different classes of data. It is positioned at the largest distance from the nearest points of every class. The higher the distance of the data point from the hyperplane, the more it belongs to its class. For regression, the principle is similar: hyperplane maximizes the distance between the predicted and actual values. Evaluation Metrics: Accuracy, precision, recall, and F1 score -> for classification MSE, R-squared -> for regression Hyperplane: 🔗https://lnkd.in/gstszcfb 7. Random Forest: Used For: Regression & Classification Description: The random forest algorithm uses an ensemble of decision trees, which then make a decision forest. The algorithm’s prediction is based on the prediction of many decision trees. Data will be assigned to a class that receives the most votes. For regression, the predicted value is an average of all the trees’ predicted values. Evaluation Metrics: Accuracy, precision, recall, and F1 score -> for classification MSE, R-squared -> for regression 🔗https://lnkd.in/geNDkSDE 8.Gradient Boosting Used For: Regression & Classification Description: These algorithms use an ensemble of weak models, with each subsequent model recognizing and correcting the previous model's errors. This process is repeated until the error (loss function) is minimized. Evaluation Metrics: Accuracy, precision, recall, and F1 score -> for classification MSE, R-squared -> for regression 🔗https://lnkd.in/gMAvVYHV

To view or add a comment, sign in

Explore topics