Starting from:

$29.99

CSE140 Assignment-2 Solution

• Your submission should be a single zip file 2022xxx HW2.zip (Where 2020xxx is your roll number). Include all the files (code and report with theory questions) arranged with proper names. A single .pdf report explaining your codes with results, relevant graphs, visualization and solution to theory questions should be there. The structure of submission should follow:
2022xxx HW2
|− code rollno.py/.ipynb
|− report rollno.pdf
|− (All other files for submission)
• Anything not in the report will not be graded.
• Your code should be neat and well commented.

1. (10 points) Section A (Theoretical)
(b) Imagine that you are designing a smart room-cleaning robot for your home. It needs to be able to navigate through the house, detect obstacles, collect dust, sweep the floors, remove dirt etc. Now answer the following questions -
(i) (1 point) What kind of robot is it?
(ii) (1 point) What sensors will you use to solve this problem? Will you use Passive or active sensors? Give reasons for the same.
(iii) (1 point) What kind of effectors will be required for this problem statement? Give reasons for the same. (Hint - effectors for movement, collecting dust, mopping the floors, etc.)?
(iv) (1 point) Think of the type of knowledge base and reasoning that can be used for making this robot intelligent.
2. (10 points) Section B (Code Implementation)
(a) Write a Python script that takes a text corpus (e.g., a collection of news articles) as input and performs the following tasks:
(i) (0.5 points) Tokenizes the text into individual words or phrases.
(ii) (0.5 points) Removes stop words (e.g., ”the”, ”and”, ”a”, etc.) from the tokenized text.
(iii) (0.5 points) Performs stemming or lemmatization to reduce words to their base form.
(iv) (0.5 points) Counts the frequency of each word or phrase in the text.
(v) (0.5 points) Outputs the most frequent words or phrases in the text, along with their frequency count.
Pick a set of 3 different random images from the data set for each augmentation task [In case storing entire 1.27 GB folder is a problem, make a folder of first 10 images and then randomly select 3 images each time].
(i) Resize
(ii) Pad
(iii) Grayscale
(iv) Contrast
(v) Saturation
Page 2

Figure 1:
Page 3

More products