In Python:
1. Load any one of the toy/real datasets (for classification) from scikit-learn library. Display general information and statistics about your selected dataset. (5 points) 2. Split the dataset into train and test sets. (5 points) 3. Implement a k-nearest neighbors classifier (k=3) for the training set. You are not allowed to use the scikit learn library for the k-nearest neighbors classifier. Show the result for the test set using the following metric: accuracy, precision, and recall. (10 points) 4. Split the training set into 5-fold for cross-validation. You are not allowed to use the scikit-learn library method for cross-validation. Calculate accuracy for each held-out set. Also, display the average accuracy for five folds. (10 points)
In Python:
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In Python:
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!