0% found this document useful (0 votes)
164 views

R.K Pub - Ai Lab Manual 10

Uploaded by

Arya Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views

R.K Pub - Ai Lab Manual 10

Uploaded by

Arya Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

1. AI ACTIVITY.

ROCK, PAPER, SCISSORS

AI Concept Used. Machine Learning.


URL. https://www.afiniti.com/corporate/rock-paper-scissors
About this Activity. Rock paper scissors is an old
and simple game played with the hands between two
players. It can also now be played with system as one player
and you will be the second player.
Method : It has only three rules–
✦ Paper beats rock
✦ Scissors beats paper
✦ Rock beats scissors
The players of the game have to guess what the opponents has in mind and make an appropriate
shape out of the three that is rock/paper/scissor.
AI Working. The AI program keeps track of the choices made by you and assigns probability to
it. Based on the probability, it responds with appropriate shapes and will try to defeat you. For this
AI system uses Machine learning domain.
2. AI ACTIVITY. SONG MAKER.

AI Concept Used. Machine Learning.


URL. https://musiclab.chromeexperiments.com/Song-Maker/
About this Activity. It is an activity designed by Google Chrome to make and share songs.
Method
✦ Open the site using the URL given above.
✦ Click on the boxes to create notes according to your taste and then click on “Play” button.
✦ It will produce tune according to the notes chosen by you.
✦ You can also save and then share the tune created by you.

R.K. PUBLICATION HOUSE-X 1


AI Working. In this activity the system tries to read the nodes selected by the user, compile
them and produce a piece of music.
3. AI ACTIVITY. AI LEARNING.

AI Concept Used. Machine Learning.


URL. https://experiments.withgoogle.com/collection/ai
About this Activity. It is an activity designed by Google for simple AI experiments to start
exploring machine learning, through pictures, drawings, language, music, and more.
Method
✦ Open the site using the URL given above in a browser.
✦ The homepage of the website AI Experiments opens up.

✦ Scroll down to AI + Learning section.

2 ARTIFICIAL INTELLIGENCE-X
✦ There are three experiments under this category namely Teachable Machine, What Neural
Network see and Visualizing High-Dimensional Space. Click on the Launch Experiment button
displayed with each experiment.

AI Working. Try all the three experiments to get a feel of AI and Machine Learning.
4. AI ACTIVITY. FACEAPP.

AI Concept Used. Image Processing.


About this Activity. This app is
designed for image processing using neural
network. Using this app you can modify
human faces in the photographs. You can add
a smile, make the person younger or older,
change gender etc.
Method
✦ It is an app for mobile and tabs so
download this app from play store.
✦ The app is available for android, apple
and windows based devices.
✦ Capture images from your smart-
phones or tabs.
✦ Apply various effects to the pics
captured and have fun.
AI Working. The FaceApp can generate
younger and older versions of the human face,
male or female versions of the human face,
generate smile on an existing face and much
more.

R.K. PUBLICATION HOUSE-X 3


5. AI ACTIVITY. CLEVERBOT.

AI Concept Used. Data Science and NLP.


About this Activity. This app is designed for talking with human beings. You can talk with
Cleverbot just like you talk to your friends.
Method
✦ It is an app for mobile and tabs so download this app from play store.
✦ The app is available for android, apple and windows based devices.
✦ Type your text as an input for starting the conversation with Cleverbot.

✦ Cleverbot will respond and will talk to you.


AI Working. The Cleverbot does not use any preprogrammed responses. It instead learns from
human inputs. When you type the text it is accepted as input, the bot than searches its database for
responses in its database, picks up an appropriate response and shows it to the users.

4 ARTIFICIAL INTELLIGENCE-X
1. AI ACTIVITY. PROBLEM SCOPING.

AI Domain Used. Data Domain.


URL. https://ncase.me/loopy/ or use MS-Word or pen and paper.
About. Loopy provides a simple and easy platform for creating system maps.
Method
1. Open Loopy in a web browser using the URL given.
2. On the left side of the loopy screen we have to buy for working with various shapes for drawing
system map.
3. The tool bar includes pencil tool, text tool,move tooland eraser tool.
4. And on the right side we have properties toolbar for working with an object.
5. Using these tools you can draw a system map which then can be saved as JPG file.
6. Draw a system map using loopy for the serious issue of pollution in an area as shown in the
figure given below.

R.K. PUBLICATION HOUSE-X 5


2. AI ACTIVITY. CHART CREATION.

AI Domain Used. Data Visualisation.


URL. https://projector.tensorflow.org
About. Tensorflow is an open source framework developed by Google researchers for machine
learning, deep learning and other statistical and predictive analytics. It allows to handles data sets
that are arrayed as computational nodes in graphical form.
Method
1. Open Tensorflow in a web browser using the URL given.
2. Write a python code for the problem you want a solution.
3. Then you can create a graph for the problem and its solution.
4. The data visualisation will give you insight into the problem and its solution.

3. AI ACTIVITY. CHART CREATION.

AI Concept Used. Data Visualisation.


URL. https://tableau.com
About. Tableau converts raw data into a very easily understandable format. It’s a powerful data
visualisation tool which makes data analysis process easy.
Method
1. Open Tableau in a web browser using the URL given.
2. Arrange for a data set with a large data set like students marks, attendance details in
spreadsheet format.
3. Open the file and perform data curation by removing unwanted rows and columns from the
file and save the file.
4. Now open TableauPublic.

6 ARTIFICIAL INTELLIGENCE-X
5. Select the data set as MS-Excel for connecting the data set to tableau.
6. Open the Excel file, the data set will be uploaded into tableau.

7. Now click on the Latest directory and select “Field names are in the first row” option.
8. Click on the sheet1 tab at the bottom left of the tableau screen.
9. The element listed on the left side of the screen has dimensions and measures.
10. Choose any two elements that will be used for the data visualisation.
11. After selecting the elements click on the visualisation option on the right side of the screen.
12. Chart type can be selected according to the data you have for the visualisation.
4. AI ACTIVITY. SDGS ACTIVITY.

AI Concept Used. Data Acquisition.


URL. –https://go-goals.org/
About. SDGs are set of goals which the member states of the United Nations have agreed to
achieve by 2030. These goals are necessary to achieve to make the world a better living place. ‘Go
Goals!’ is a board game based on this.

R.K. PUBLICATION HOUSE-X 7


Materials Required. Game board, Game rules, Dice and token, Question cards set, Glue,
Scissors, Sketch-pens.
Method. SDGs activity can be done by taking a printout of all the 17 SDG tokens along with
board for the game. The rules of the game, the board for the game and 5 set of MCQ for each goal can
be downloaded from the above mentioned URL as shown in the figures given below.

1. There are tokens for each player among whom one has to throw a dice and he will move on the
board according to the number appeared just like Ludo game.
2. If the ladder comes, then the token will climb the ladder and if the waterslide comes, the
player has to move to the bottom of the slide.
3. If the token reaches to any of the SDGs, a question will be asked from question sheets (MCQs).
4. If the player gives the correct answer, he will get another chance to throw the dice.
5. The token that reaches 2030 first will be the winner.

8 ARTIFICIAL INTELLIGENCE-X
1. CODE COMBAT

CodeCombat is a web portal where you can learn programming concepts and language too. On
this portal you can learn basic concepts of programming languages like Python, JavaScript, HTML,
XML etc. by typing code and looking at how the game characters perform on screen as per the code
given by you. It’s a fun and easy way of learning the fundamentals of programming.
Steps to play CodeCombat
1. Open the web browser and type the URL https://codecombat.com in the address bar of the
browser.
2. The home page of the website opens up.
3. Click on I’m a Student button to begin.

4. A pop up window will appear as shown below. In this window click on Play Now button.
5. The first level of the game is Kithgard Dungeon. In all, there are 41 levels in the game. For
playing the game click on Play button in green color.

R.K. PUBLICATION HOUSE-X 9


6. Start playing the game alongside learn the programming concepts and coding too.
2. PROGRAMMING HERO : CODING JUST GOT FUN

Its an app to learn to build your own game. Using this app you can learn to code, do programming,
coding and play coding games.
3. LEARN PYTHON PROGRAMIZ

This is an app you can download on your android mobile and use it for learning Python in an easy
way. Learn Python Programiz will let you learn Python programming through Tutorials, interactive
code editor, challenges and more.

10 ARTIFICIAL INTELLIGENCE-X
4. W3SCHOOLS.COM

It’s a website which provides tutorials, exercises, and code games for learning various
programming languages like Python, HTML,CSS, JavaScript and many more.

5. Magic-8ball is an AI based web portal where the user types a question and shakes
the magic ball to get an answer. It basically takes an average of 72 outcomes and responds
with the best suitable answer. If you again shake the magic ball it will give the user a new
answer.

R.K. PUBLICATION HOUSE-X 11


1. Open the home page of magic-ball using https://magic-8ball.com/

2. Type your question in the box given at the bottom.

12 ARTIFICIAL INTELLIGENCE-X
3. Click on the SHAKE 8 BALL button, the ball will shake and answer will be displayed in the
center of the ball.

6. Write a program to declare two numeric variables and display their sum.

7. Write a program to declare two string variables, store your name in first variable
and surname in the second variable and display them together with space between them.

8. Write a program to accept your name and display it as “Hello” + your name.

9. Write a program to calculate the remainder by accepting the dividend and divisor
as input from the user.

R.K. PUBLICATION HOUSE-X 13


10. Write a program to create a list of elements with variety of data type values and
display all the elements in that list.

11. Write a program to create a nested list.

12. Write a program to accept and add an element to the existing list.

13. Write a program to sort the elements of the list.

14. Write a program to reverse the elements in a list.

15. Write a program to accept two numbers and calculate their exponent.

14 ARTIFICIAL INTELLIGENCE-X
16. Python Program to Print all Prime Numbers in an Interval.

Output.

17. Write a Python Program to check whether a Person is eligible to Vote or not

Output.

R.K. PUBLICATION HOUSE-X 15


18. Write python program to print half pyramid using *

Output.

19. Write a python Program to print half pyramid a using numbers

Output.

16 ARTIFICIAL INTELLIGENCE-X
20. Write a Python Program to print inverted half pyramid using * and numbers

Output.

R.K. PUBLICATION HOUSE-X 17


1. AI ACTIVITY. SEMANTRIS.

AI Concept Used. Data Domain


URL. https://research.google.com/Semantris/
About this Activity. It’s a word association
activity where user has to give clues and Semantris
will return the closest possible word as per the clue
given.
Method
1. Go to the URL given above and click on “Play
Block” button.
2. It will give you a set of blocks with words.
3. Now you can enter a clue for any word of your
choice.
4. The system tries to guess the word according
to the clue given by you.
5. The system will return the closest possible word as per the clue given.
AI Working. Here AI system is trained to search millions of examples and variations of text so
as to relate the clue given by you and return the closest possible word.
2. AI ACTIVITY. TIC-TAC-TOE.

AI Concept Used. Data Domain


URL. https://mistupid.com/games/tic-tac-toe.htm
About this Activity. Tic-Tac-Toe is a very old and simple two player game played on a 3 by 3
grid.
Method
1. Now one of the player starts the game by
marking with either cross or zero on the board.
2. Whatever symbol he choose has to continue
with the same symbol throughout the game
and the other person will use the second
gaisymbol so as to stop the first person from
having three symbols placed in continuation
either horizontally, vertically or diagonally on
the grid.
3. Here, it is to note that one of the player will be
computer and the other player will be you.

18 ARTIFICIAL INTELLIGENCE-X
AI working. It is a very basic program which calculates all the possible outcomes and then
places the symbol on the grid. You will notice that it is very difficult to beat a computer in this game.
3. AI ACTIVITY. TEACHABLE SNAKE.

AI Concept Used. Data Domain.


URL. https://teachable-snake.netify.com/
About this Activity. Teachable snake activity uses pre trained neural network to control classic
snake game with the help of images captured using webcam.
Method
1. Click on “Start” button.
2. The snake will start moving on the screen.
3. You have to control the movement of the snake
and at the same time snake needs to consume
the objects on the screen.
4. The snake will grow as it keeps on consuming
objects so needs to be controlled precisely.
5. Also try controlling the snake with the hands
or using arrows drawn on the paper.
AI Working. This game uses neural network which has been trained to recognise different type
of arrows to control the movement of the snake. The system tries to identify the direction of the
arrow and moves the snake on the screen accordingly.
4. AI ACTIVITY. CHART CREATION.

AI Concept. Data Visualisation.


Package. Matplotlib.
About. Matplotlib can be used with Jupyter for plotting various types of graphs. This can be
done by importing pyplot function available in Matplotlib.

R.K. PUBLICATION HOUSE-X 19


5. AI ACTIVITY. PLOT LINE GRAPH WITH GIVEN DATA IN PYTHON.

Tools. Jupyter Notebook or Google Colabs

Output.

6. AI ACTIVITY. PLOT HISTOGRAM WITH GIVEN DATA IN PYTHON.

Tools. Jupyter Notebook or Google Colabs

20 ARTIFICIAL INTELLIGENCE-X
Output.

R.K. PUBLICATION HOUSE-X 21


1. AI ACTIVITY. QUICK DRAW.

AI Concept Used. Computer Vision


URL. https://quickdraw.withgoogle.com/
About this Activity. The user has to draw an object
on a canvas and the system will return the closest possible
name as per the drawing.
Method
1. Go to the URL given above and click on START
button.
2. It will give you a canvas to draw.
3. Now you can draw an object of your choice.
4. The system then tries to guess the object drawn by you.
5. The system will return the closest possible name as per the drawing.
AI Working. Here AI system will try to match the object you have drawn with the millions of
images it has in its storage and once the match is found, returns the name of the object.
2. AI ACTIVITY. EMOJI SCAVENGER HUNT.
AI Concept Used. Computer Vision and Machine Learning.
URL. https://emojiscavangerhunt.withgoogle.com/
About this Activity. While playing this game
on your laptop or PC you have to use the web
camera to capture images within a time limit and
then system will match the object and award points
to the user.
Method
1. Open the site and click on “Let’s Play”
button.
2. An object will be shown to you on screen,
you have to find a similar object in your
surroundings and take the object in front
of the camera.
3. If the object matches you will get points.
4. And if you fail to find similar object within the time limit you will loose.
5. Now, click on “Next emoji” for another object.
AI Working. This activity uses different domains of AI such as computer vision and machine
learning for object detection by the system.

22 ARTIFICIAL INTELLIGENCE-X
3. AI ACTIVITY. SHADOW ART.

AI Concept Used. Computer Vision.

URL. Https://shadowart.withgoogle.com/?Ng=en-us
About. Shadow Art is a web browser-based activity that lets you experience AI and shadow
puppetry in a playful way. shadowart helps in experiencing shadow puppetry by bringingit online,
what used to be an offline experience.
Method
1. Open shadowart in a web browser using the URL given.
2. Use your hands to form one of twelve zodiac animals from the lunar cycle in front of your
laptop or phone camera.
3. Try to match your hands to the diagram on the screen. The “shadow” of your hands on the
screen then transform into a shadow puppet animal.
4. It’s an interactive activity where you have twenty seconds to form each animal. The goal is to
go through the full lunar cycle as fast as possible.
4. AI ACTIVITY. IMAGE BASED SEARCH.

AI Concept Used. Computer Vision.


Software. Camfind app on smart phones.
About. Camfind is a visual search and image recognition mobile app. It allows users to identify
any item just by taking a picture with smartphone, providing a range of information including related
images and videos, local shopping results, price comparisons and web results.
Method
1. Install the Camfind app on your smart phone from the playstore.
2. Take picture of any object around you.
3. Then you can search for information about that object, including related images and videos,
local shopping results, price comparisons and web results.

R.K. PUBLICATION HOUSE-X 23


1. AI ACTIVITY. SPELLING TEST

AI Concept Used. NLP


URL. https://experiments.withgoggle.com/interplay-mode/view/
About this Activity. It’s a portal that lets you practice spellings and their pronunciations in
your voice.
Method
1. Open the site using the URL given above.
2. Select the spelling test.
3. First it tells you a word which you have to spell
letter bye letter.
4. The computer will check if you are right along
the way.
5. Once practice is done,you can spell the word
which will be typed and displayed on screen.
AI Working. This activity let’s you practice spellings and their pronunciation.
2. AI ACTIVITY. THING TRANSLATOR

AI Concept Used. Computer Vision and Natural Language Processing


URL. https://experiments.withgoogle.com/thing-translator
About. Thing Translator is a portal developed by google for experimenting with computer vision
and natural language processing. It allows a child to learn how to pronounce an object in different
languages. Thing Translator is a fun way of learning new words in different languages.
Method
1. Open Translator in a web browser in your smart phone using the URL given.
2. Now capture the image of an object from your surroundings using Translator.
3. The Translator recognizes the object and gives a fitting description in the language chosen by
the user.
4. Along with that, it also describes an image in a chosen language which one wants to learn.

24 ARTIFICIAL INTELLIGENCE-X
1. AI ACTIVITY. LEARN USING VIDEOS.

AI Domain Used. Neural Network


URL. https://experimentswithgoogle.com/interplay-mode/view
About. This experiment by Google will teach you new things through videos.
Method
1. Open the Inter play site in your browser using the URL given.
2. The home page will show you what the experiment is all about.

3. Now choose a topic from the list of videos available and play.
4. Here, we have chosen to learn writing Japanese.
5. Watch the video, draw the word on the canvas given on the right side and click on Submit
button.

6. If the word you have written matches with video it will appreciate your effort.

R.K. PUBLICATION HOUSE-X 25

You might also like