AI practical file(final)
AI practical file(final)
gurugram
ARTIFICIAL
INTELIGENCE
PRACTICAL
RECORD
Supervised Learning
04 andReinforcement Learning
Activitythrough Artbot
06 AI Domain - Data
08 CV - Shadow Art
09 AI Domain - NLP
Teachable Machine
Activity★ Image
10
Project★ Audio
Project★ Pose Project
11 Chatbots
12 IBM certification
14 data visualization
1)AI for all certificates
1)AI for all Badges
2)AI for Oceans
The "AI for Oceans" lesson from Code.org teaches students
the basics of machine learning, focusing on supervised
learning. In the activity, students help an AI bot clean the
ocean by classifying objects as "fish" or "not fish" and
labeling various sea creatures. This helps the AI learn to make
similar distinctions on its own using the provided training
data. The lesson also introduces the concept of AI bias,
highlighting the importance of diverse and representative
data to ensure fair and accurate AI predictions.
Tic Tac Toe: It is a retro-version of the simple game of X’s and O’s
which we can play with the computer. It is based on the AI domain of Data.
It recognises the pattern in our moves and eventually starts defeating us
almost every time.
Rock Paper Scissors: It is a classic rock-paper-scissors game against
AI. The computer is able to predict our moves based on our history because
we are very likely to repeat ourselves. It identifies patterns within the data.
The more we play, the more data is collected and the AI gets better at
predicting our moves.
7)AI Domain - Computer
Vision
Computer Vision (CV): This is a branch of artificial
intelligence (AI) that enables machines to analyses visual
data, such as digital images and videos, extract meaningful
information and patterns, and ultimately make decisions,
take actions, or provide recommendations based on the
obtained information. Computer vision empowers machines
to perceive, observe, and comprehend the world around
them.Some online games based on Computer vision are
Teachable Snake and emoji scavenger hunt
Chat bots can be found almost anywhere some example are Chatgpt, Microsoft
copilot, Meta ai, Duolingo, Domino’s pizza bot etc.
Chatbots made
MedBot
https://poe.com/MedBot27
Finance_Bot
https://dashboard.sendbird.com/6398649D-0BEA-4B97-A96D-
023F19D3D216/ai-chatbots/preview/onboarding_bot
PYTHON PRATICAL QUESTIONS
Q1. Write a Tipper program where the user inputs the total restaurant bill. The
program should then
display two amounts: 15 percent tip and 20 percent tip
Q2. Write a program that asks the user to enter their name and age. Print a
message addressed to the user that tells the user the year in which they will turn
100 years old.
Q3. Write the program to swap two numbers without using the third variables.
Q4. Write a program to accept the Basic salary from the user
and calculate the Net Salary. Net
Salary= Basic Salary + HRA + DA -PF , HRA=30% of Basic,
DA=20% of Basic, PF=12% of Basic.
Q5. Write a program to check whether the user is eligible for driving license
or not.
Q6. Your father always gives his car for service after 15000 km. Check whether
his car needs service or not. Read the kilometre reading from the user and give
the output.
Q7.WAP to find the largest number among the three inputted numbers.
Q8. WAP to perform the following tasks according to the users’ choice using menu.
1)area of triangle 2) perimeter of square
3)perimeter of triangle 4) area of square
Q9. WAP to accept and display if the entered password full fill the following
criteria:
a) It must have at least 8 characters
b) Should have an uppercase
c) should have a digit
d) Should have a Special character
Q10. WAP that will arrange the three numbers entered in ascending or
descending order
Q11. Write a program to display the first ten even natural numbers
A)
B)
C)
D)
Q15. WAP to create an integer list and use the following function:
a) append () and extend ()
b) insert (), pop ()
c) count (), len ()
d) min (), max (), sum ()
A)
B)
C)
D)
IBM Skillsbuild certificate
Aditva Singh
Aditva Singh
19 January, 2025
Aditva Singh
Transparency Privacy
Explanaibilty
Explainability in AI refers to the transparency and
interpretability of AI systems, allowing users to understand
how algorithms make decisions and predictions. It plays a
crucial role in ensuring that AI systems are transparent,
accountable, and aligned with ethical principles.
Essentially, explainability is about providing insights into
how AI models arrive at their decisions or predictions,
making their inner workings clear and understandable.
Cognitive biasness
Cognitive bias refers to mental shortcuts that distort
judgment. Mitigation in AI involves identifying and
correcting biases in data, algorithms, or decisions
through diverse training data, regular audits, and
adjustments for fairness. Biases like confirmation and
availability bias help us process information quickly but
can skew our perception.
Mitigating AI Biasness
Code 1 : Plot a line chart representing the weekly number of customer inquiries
received by a customer service center
Code output
Code 2 : Visualize the distribution of different types of transportation used by
commuters in a city using a pie chart
Code output
Code 3:Plot a scatter plot to visualize the relationship between the height and weight of
grade 11 students.
Code output
Code 4: A teacher wants to visualize the average marks obtained by Grade 11
students in various subjects.
Code output
Code 5:A teacher has collected the following data on the heights (in centimeters) of 30
students in Class 11.
Create a histogram to visualize the distribution of heights among the students. Use an
appropriate number of 6 bins to represent the data effectively.
Code output