2.3 it hw
2.3 it hw
Experiment: 2.3
1. Aim of the practical: Build a classification model by using different machine learning
algorithms.
Theory:
Classification is a supervised machine learning task where the goal is to predict the category or
class of a given data point based on input features. Various machine learning algorithms can be
used to build classification models, each with its strengths and weaknesses. Below is a brief
overview of key concepts and algorithms used in classification:
o The dataset is split into training and testing sets to evaluate the model's
performance on unseen data.
2. Features and Target Variable:
o Features are the input variables (independent variables), and the target variable
(dependent variable) is the class to be predicted.
3. Evaluation Metrics:
o Accuracy, precision, recall, F1-score, confusion matrix, ROC-AUC, etc., are used
to assess model performance.
4. Preprocessing:
o Data must be cleaned, normalized, and encoded (for categorical features) before
training.
1. Logistic Regression: Suitable for binary classification tasks; uses a logistic function to
model the probability of a class.
2. Decision Tree: Splits data based on feature values; provides interpretable results but can
overfit on small datasets.
4. Support Vector Machine (SVM): Finds the optimal hyperplane to separate classes; works
well with small datasets and high-dimensional spaces.
CODE :
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering
University Institute of Engineering
Department of Computer Science & Engineering
5. Result and Summary: We were able to build a classification model using many machine
learning languages
4.I learned the use of popular machine learning languages such as logistic
regression,linear regression and design tree
Evaluation Grid: