Ai ML Final Lab Manual

Download as pdf or txt
Download as pdf or txt
You are on page 1of 23

Diploma Engineering

Laboratory Manual
(Foundation of AI and ML)
(4351601)

[Information Technology, Semester-V]


Enrolment No
Name
Branch INFORMATION TECHNOLOGY
Academic Term
Institute GOVERNMENT POLYTECHNIC,
RAJKOT - 620

Directorate Of Technical Education


Gandhinagar - Gujarat
Foundation of AI and ML (4351601)

DTE’s Vision:
● To provide globally competitive technical education;
● Remove geographical imbalances and inconsistencies;
● Develop student friendly resources with a special focus on girls’ educationand support
to weaker sections;
● Develop programs relevant to industry and create a vibrant pool of technical
professionals.

DTE’s Mission:
• To facilitate quality technical and professional education having relevance for both industry and
society, with moral and ethical values, giving equal opportunity and access, aiming to prepare globally
competent technocrats.

Institute’s Vision:
• To be a leading technical institute that provides transformative education to learners for achieving
competency as per the needs of industry and society, thus contributing to nation building.

Institute’s Mission:
• To provide a conducive learning environment to nurture learners.
• To act as a catalyst for achieving academic excellence by bringing stake holders on same platform.
• To be committed towards continuous improvement and enrichment of learners by a holistic
approach to education so as to enable them to be successful individuals and responsible citizens of
India.

Department’s Vision:
• To acquire quality Education, Research and Development in the field of Information technology
meeting the global standards and comply with the ever-growing technology.

Department’s Mission:

• The graduates of our department will be efficient in technical and ethical responsibilities to become
globally recognized by pursuing opportunities for higher studies and real time problem solving.
• Project development in association with the Government, Industries and Professionals will be done
that can meet industrial needs.
• Students will be competent by learning the principals of Information technology that can match
national and international standards.
Foundation of AI and ML (4351601)

Certificate

This is to certify that Mr./Ms. ____________________________

Enrolment No.____________________ of 5 T H Semester of Diploma in

Information Technology Of GOVERNMENT POLYTECHNIC, RAJKOT (620)

has satisfactorily completed the term work in course Foundation of AI and ML

(4351601) for the academic year: Term: Odd/Even prescribed in the

GTU curriculum.

Place: Rajkot

Date: …………………….

Signature of Course Faculty Head of the Department


Foundation of AI and ML (4351601)

Preface
The primary aim of any laboratory/Practical/field work is enhancement of required skills as
well as creative ability amongst students to solve real time problems by developing relevant
competencies in psychomotor domain. Keeping in view, GTU has designed competency focused
outcome-based curriculum -2021 (COGC-2021) for Diploma engineering programmes. In this more
time is allotted to practical work than theory. It shows importance of enhancement of skills amongst
students and it pays attention to utilize every second of time allotted for practical amongst Students,
Instructors and Lecturers to achieve relevant outcomes by performing rather than writing practice in
study type. It is essential for effective implementation of competency focused outcome- based Green
curriculum-2021. Every practical has been keenly designed to serve as a tool to develop & enhance
relevant industry needed competency in each and every student. These psychomotor skills are very
difficult to develop through traditional chalk and board content delivery method in the classroom.
Accordingly, this lab manual has been designed to focus on the industry defined relevant outcomes,
rather than old practice of conducting practical to prove concept and theory.

By using this lab manual, students can read procedure one day in advance to actual
performance day of practical experiment which generates interest and also, they can have idea of
judgement of magnitude prior to performance. This in turn enhances predetermined outcomes amongst
students. Each and every Experiment /Practical in this manual begins by competency, industry relevant
skills, course outcomes as well as practical outcomes which serve as a key role for doing the practical.
The students will also have a clear idea of safety and necessary precautions to be taken while
performing experiment.

This manual also provides guidelines to lecturers to facilitate student-centred lab activities for
each practical/experiment by arranging and managing necessary resources in order that the students
follow the procedures with required safety and necessary precautions to achieve outcomes. It also
gives an idea that how students will be assessed by providing Rubrics.
Fundamentals of machine learning course will help students to build up core competencies in
understanding machine learning approaches and students will be able to design and train machine
learning modes for various use cases. The lab work of the course is designed to develop crisp
understanding of the underpinning theory.

Although we try our level best to design this lab manual, but always there are chances of
improvement. We welcome any suggestions for improvement.

3 | Page
Foundation of AI and ML (4351601)

Programme Outcomes (POs):

1. Basic and Discipline specific knowledge: Apply knowledge of basic mathematics, science
and engineering fundamentals and engineering specialization to solve the engineering
problems.

2. Problem analysis: Identify and analyse well-defined engineering problems using codified
standard methods.

3. Design/ development of solutions: Design solutions for engineering well-defined technical


problems and assist with the design of systems components or processes to meet specified
needs.

4. Engineering Tools, Experimentation and Testing: Apply modern engineering tools and
appropriate technique to conduct standard tests and measurements.

5. Engineering practices for society, sustainability and environment: Apply appropriate


technology in context of society, sustainability, environment and ethical practices.

6. Project Management: Use engineering management principles individually, as a team


member or a leader to manage projects and effectively communicate about well-defined
engineering activities.

7. Life-long learning: Ability to analyze individual needs and engage in updating in the context
of technological changes in field of engineering.

4 | Page
Foundation of AI and ML (4351601)

Practical Outcome - Course Outcome matrix


Course Outcomes (COs):

CO1) Understand fundamental principles of Artificial Intelligence.


CO2) Compare types of machine learning.
CO3) Build a simple Neural Network model to solve real world problem.
CO4) Apply data preprocessing on text/paragraph using NLTK library.
CO5) Demonstrate word embedding techniques to develop real world NLP applications.

CO1 CO2 CO3 CO4 CO5


S. No. Practical Outcome/Title of experiment
1. Use Cancer Dataset for detecting whether the
cancer cells in data are benign or malignant.
The data contains 2 types of cancers: 1. ✔
benign cancer (B) and 2. Malignant cancer
(M). Use relevant ML techniques for the
same.
2. Implement following activation functions ✔
using python to build simple neural network.
a. ReLU b. Sigmoid c. Tanh
3. Implement following feed forward neural ✔
network using python programming: a. Single
layer feed forward neural network. b. Multi-
layer feed forward neural network.
4. Perform following data preprocessing on ✔
text/paragraph using NLTK library:
a. Write a Python program to tokenize
words, sentence wise.
b. Write a python program that accepts
the list of tokenized word and stems it
into root word.
c. Write a program in python to identify
the part of speech for each word in the
text.
d. Write a Python NLTK program to
remove stop words from a given text.
e. Write a python program for identifying
and correcting misspelled words in a
given text, such as an essay or a letter.
5. Implement following Word embedding ✔
techniques in NLP.
a. TFIDF- Term Frequency Inverse
document Frequency
b. BOW (Bag of Words)
c. Word2Vec

5 | Page
Foundation of AI and ML (4351601)

Implement Pre Trained word Embedding: ✔


6.
GloVe Technique in NLP.
Industry Relevant Skills
The following industry relevant skills are expected to be developed in the students by
performance of experiments of this course.

a) Student will learn to automate variety of task making system more efficient and cost
effective.
b) Student will learn efficient handling of data that will cater to better data analytics
c) Student will lean to implement AI and ML approaches to varied field of applications from
healthcare to e-commerce.

Guidelines to Course Faculty


1. Course faculty should demonstrate experiment with all necessary implementation
strategies described in curriculum.
2. Course faculty should explain industrial relevance before starting of each experiment.
3. Course faculty should involve& give opportunity to all students for hands on experience.
4. Course faculty should ensure mentioned skills are developed in the students by asking.
5. Utilise 2 hours of lab hours effectively and ensure completion of write up with quiz also.
6. Encourage peer to peer learning by doing same experiment through fast learners.

Instructions for Students


1. Organize the work in the group and make record of all observations.
2. Students shall develop maintenance skill as expected by industries.
3. Student shall attempt to develop related hand-on skills and build confidence.
4. Student shall develop the habits of evolving more ideas, innovations, skills etc.
5. Student shall refer technical magazines and data books.
6. Student should develop habit to submit the practical on date and time.
7. Student should well prepare while submitting write-up of exercise.

6 | Page
Foundation of AI and ML (4351601)

Continuous Assessment Sheet


Enrolment No: ___________________ Name: ___________________________________
Term: 2023-24 (Term: 231)

Sr Practical Outcome/Title of experiment Page Date Marks Sign


no
(25)

1 Use Cancer Dataset for detecting whether the


cancer cells in data are benign or malignant. The
data contains 2 types of cancers: 1. benign cancer
(B) and 2. Malignant cancer (M). Use relevant ML
techniques for the same.
2 Implement following activation functions using
python to build simple neural network. a. ReLU b.
Sigmoid c. Tanh
Implement following feed forward neural network
3 using python programming: a. Single layer feed
forward neural network. b. Multi-layer feed forward
neural network.
4 Perform following data preprocessing on
text/paragraph using NLTK library:
a. Write a Python program to tokenize
words, sentence wise.
b. Write a python program that accepts the
list of tokenized word and stems it into
root word.
c. Write a program in python to identify the
part of speech for each word in the text.
d. Write a Python NLTK program to remove
stop words from a given text.
e. Write a python program for identifying
and correcting misspelled words in a given
text, such as an essay or a letter.
5 Implement following Word embedding
techniques in NLP.
a. TFIDF- Term Frequency Inverse document
Frequency
b. BOW (Bag of Words)
c. Word2Vec
6 Implement Pre Trained word Embedding: GloVe
Technique in NLP.
PRACTICAL – 1
AIM: Use Cancer Dataset for detecting whether the cancer cells in data are benign or
malignant. The data contains 2 types of cancers: 1. benign cancer (B) and 2. malignant
cancer (M). Use relevant ML techniques for the same.

CODE:
OUTPUT:
PRACTICAL – 2
AIM: Implement following activation functions using python to build simple neural network.
a. ReLU
b. Sigmoid
c. Tanh

CODE:
OUTPUT:
PRACTICAL – 3
AIM: Implement following feed forward neural network using python programming:
a. Single layer feed forward neural network.
b. multi-layer feed forward neural network.

CODE (Single Layer Neural Network ):

CODE (Multi-Layer Neural Network):


OUTPUT:
PRACTICAL – 4(a)
AIM: Write a Python program to tokenize words, sentence wise using NLTK library.

CODE:

OUTPUT:

PRACTICAL 4(b)
AIM: Write a python program that accepts the list of tokenized word and stems it into root
word using NLTK Library.

CODE:

OUTPUT:
PRACTICAL – 4(c)
AIM: Write a program in python to identify the part of speech for each word in the text using NLTK.

CODE:

OUTPUT:

PRACTICAL – 4(d)
AIM: Write a Python NLTK program to remove stop words from a given text using NLTK.
CODE:

OUTPUT:
PRACTICAL – 4(e)
AIM: Write a python program for identifying and correcting misspelled words in a given text,
such as an essay or a letter using NLTK.
CODE:

OUTPUT:

PRACTICAL – 5
AIM: Implement following Word embedding techniques in NLP.
a. TFIDF- Term Frequency Inverse Document Frequency
b. BOW (Bag of Words)
c. Word2Vec

CODE:

OUTPUT:
PRACTICAL – 6
AIM: Implement Pre-Trained Word Embedding: GloVe Technique in NLP.
CODE:

OUTPUT:

You might also like