Assignment
Assignment
Duration: 2 hours
a) K-Nearest Neighbors
b) Decision Trees
c) Support Vector Machines
d) Linear Regression
6. Define the terms "precision" and "recall" in the context of classification metrics.
You are given a dataset (data.csv) containing two columns: "Feature" and "Label." Using
the pandas library, load the dataset, split it into training and testing sets (80% training, 20%
testing), and train a logistic regression model to predict the labels based on the features.
Finally, evaluate the model's accuracy on the test set.