0 views
What classification methods (algorithms) do you know? Explain them.
Asked at
AI answer
Main classification algorithms:
- Logistic regression: estimates the probability of a class using a linear combination of features. It is fast and interpretable, and is suitable for linearly separable data and as a baseline model.
- Decision tree: recursively splits the data according to conditions on features. It is easy to explain, but a single tree is prone to overfitting.
- Random forest: averages predictions from multiple trees trained on random subsets of samples and features. It is usually more robust than a single tree.
- Gradient boosting (for example, CatBoost, LightGBM, XGBoost): builds trees sequentially, with each one correcting the errors of the previous ones. It often delivers high performance on tabular data, but requires tuning and overfitting control.
- Support vector machine (SVM): finds a decision boundary with the maximum margin; kernels make it possible to construct nonlinear boundaries. It can be computationally expensive on large datasets.
- k-nearest neighbors (k-NN): assigns an object to the most common class among nearby objects. It is simple, but sensitive to feature scaling and computationally expensive at prediction time.
- Naive Bayes classifier: uses Bayes' theorem and the simplifying assumption that features are independent. It is fast and often useful for text.
- Neural networks: learn complex nonlinear relationships; they are especially effective for images, text, and other unstructured data, but generally require more data and computation.
The choice depends on the size and type of data, interpretability requirements, speed, and the evaluation metric. Models should be compared on a holdout set, not on the training data.
Also asked at СБЕР
Similar questions
- What kinds of machine learning methods are there?
- What classical statistical techniques have you used in projects?
- What is boosting, and what is it based on?
- Have you ever worked with binary classification? Have you encountered class imbalance in such tasks, and what can be done about it?
- What are CatBoost / LightGBM as methods?