The questions are as follows :
1.Write a function to calculate the Euclidean distance and Manhattan distance between two vectors. The vectors dimension is variable. Do not use any inbuilt functionalities of python.
2.Write a function to implement k-NN classifier. k is a variable and based on that the count of neighbors should be selected.
3.Write a function to convert categorical variables to numeric using label encoding without using any existing functionalities.
4.Write a function to convert categorical variables to numeric using One-Hotencoding without using any existing functionalities.
-
Notifications
You must be signed in to change notification settings - Fork 0
Yagnasri05/ML_AIE-D_22029_Lab2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published