Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Madhav Institute of Technology & Science, Gwalior

Department of Information Technology


B. Tech. (AIR), Semester – IV
240404: Machine Learning and Optimization
Assignment: I
Date of issue 16/02/2023 Date of Submission 23/02/2023
Maximum Marks 10

Q.1: Discuss the concept of supervised learning, unsupervised learning and


Reinforcement learning with suitable example. (2)

Q.2 : Demonstrate the working principle of KNN classifier. (2)

Q.3: Here is the data set of words in two languages


Word Language
piano English
cat English
kepto Vinglish
shaito Vinglish

Build a nearest neighbours classifier that will predict which language a word
belongs to.
Represent each word using the following features.
 F1-Length of the word
 F2-Number of consonants in the word
 F3-Whether it ends with the letter 'o' (1 if it does, 0 if it doesnt)
Also predict the language for the word 'keto' using KNN classifier with k=1.
(5)

You might also like