Rithvik Bhuvkar AI Assignment Final
Rithvik Bhuvkar AI Assignment Final
2024-2025
SUBMITTED BY
ROLL NO: 22
CLASS: X-D
Mrs.VIDYA MENON
Janardan Bhagat Shikshan Prasarak Sanstha's
CERTIFICATE
Teacher’s Sign
ACKNOWLEDGMENT
I extend my deep sense of gratitude and sincere thanks to our
Principal ma’am and subject teacher for the valuable support and
guidance in carrying my project work.
1) Application of AI Models 1
3) Bag of Words 3
4) Evaluation 4
ASSIGNMENT – 1
ARTIFICIAL INTELLIGENCE ( 417 )
Name: Rithvik Bhuvakar
Class/Div: 10th D
Roll.No: 22
Output:
Output:
(3) Write Python program to calculate average marks scored by a
student in 3 subjects. Accept the marks of 3 subjects as input from the
user.
Code:
Output
(4) Write Python Program to check if a person can vote and print
appropriate message.
Code:
Output-1
Output-2
(5) Write a program in Python to input a number and check if the
number is positive, negative or zero and display an appropriate
message.
Code:
Output-1
Output-2
Output-3
(6) Write Python Program using for loop :
(i) To print numbers from 1 to 10.
Code
Output
Output
(7) Write Python Program using while loop :
(i) To print numbers from 1 to 10.
Code
Output
Output
(8) Create a list in Python of children selected for science quiz with
following names- Arjun, Sonakshi, Vikram, Sandhya, Sonal, Isha,
Kartik Perform the following tasks on the list in sequence-
○ Print the whole list
○ Delete the name “Vikram” from the list
○ Add the name “Jay” at the end
○ Remove the item which is at the second position.
Code:
Output:
(9) Write a Python program to add the elements of the two lists.
Code:
Output:
Name: Rithvik Bhuvakar
Assignment - 3 Class/ Div: 10th D
Roll.No: 22
Q.1) Create a document vector table from the following
documents by implementing all the four steps of bag of words
model.
Document 1: Sameera and Sanya are classmates.
Document2: Sameera likes dancing but Sanya loves to study
mathematics.
Step 5: Lemmatization
In lemmatization, the word we get after affix removal (also
known as lemma) is a meaningful one.
1 1 1 1 1 0 0 0 0 0 0 0
1 0 1 0 0 1 1 1 1 1 1 1
Name: Rithvik Bhuvakar
Assignment - 4 Class/ Div: 10th D
Roll.No: 22
Yes 130 20
Prediction
No 40 310
Precision = 60 60 12
= 0.0415
60+25 85 17
Name: Rithvik Bhuvakar
Class/ Div: 10th D
Roll.No: 22
Recall = 60 60 12
= 0.923
60+5 65 13