Supervised Learning - Classification Week 7 Challenge
1.Pros and cons of SVM
Support Vector Machines (SVM) are a popular and powerful machine learning algorithm used for classification and regression tasks.
Pros of SVM:
Effective in High-Dimensional Spaces: SVM performs well in high-dimensional spaces.
Robust against Overfitting: SVM is less prone to overfitting, especially in cases where the number of samples is smaller than the number of features.
Kernel Trick for Non-Linear Data: SVM can handle non-linear data by using the kernel trick, which allows it to implicitly map the data into a higher-dimensional space where a linear separation is possible.
Global Optimality: SVM aims to find the optimal hyperplane that maximizes the margin.
Effective with Fewer Data Points: SVM can still produce accurate results even when the dataset is small, as long as the classes are well-separated.
Cons of SVM:
Computationally Intensive: SVM can be computationally expensive, especially for large datasets.
Memory-Intensive: In the training phase, SVM needs to store support vectors and their associated weights, which can be memory-intensive for large datasets.
Difficulty with Noisy Data: SVM is sensitive to noisy data, as outliers can influence the position of the hyperplane and the margin.
Choosing the Right Kernel: Selecting an appropriate kernel function and tuning its hyperparameters can be a challenging task.
Multiclass Classification: SVM is originally a binary classifier, and extending it to handle multiple classes (multiclass classification) requires using techniques like one-vs-one or one-vs-all.
2.Apply SVM to the “Surface defects in stainless steel plates” dataset and evaluate it.