AL & ML Lab manual (1)
AL & ML Lab manual (1)
Engineering
Laboratory Manual
(4351601)
DTE’s Vision:
● To provide globally competitive technical education;
● Remove geographical imbalance send inconsistencies;
● Develop student friendly resources with a special focus on girls’ education and 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 take 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 land 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 principal so Information technology that can match
National and international standards.
226170316038
Certificate
completed the term work in course Foundation of AI & ML (4351601) for the
Place:
Date:…………………….
Preface
skills
asw ella screa tive a bilitya m ongststu de ntstoso lve rea ltim epro ble m sbyd ev elo pingre le va ntco m pet
encies in psyc h om oto r dom a in. Ke ep ing in v iew , G TU h a s de signe d co m pete ncy focu se d
ou tco m e -ba sed cu rric u lu m -20 21 (C O G C -202 1) fo r D ip lom a e nginee ring prog ra m m e rs. In th is
m o re tim e is allotte d to pra ct ica l w ork th a n th eo ry. It sh ow s im porta nce of enh a nce m ent o f
skills a m ong stu de nts and it pa ys at tentio n to u tiliz e ev ery se cond o f tim e a llotte d fo r p ra ctic a l
am o ngst S tu dents, Instru cto rs and Le ctu rers to a ch ie ve rele va nt o utc om e s by pe rfo rm ing
rath e r th an w riting prac tic e in stu dy typ e. It is e ssentia l for effe ctive im ple m enta tion o f
com p etenc y focu se d ou tc om e- b a sed G re enc u rricu lum -20 21. E ve ry pra c tica l h as bee n kee nly
designed to se rve a s a tool to d ev elo p & e nha nc e re le va nt ind u stry nee de d c om pe tency in e a ch
and ev ery stu dent. T h e se p sych om o tor skills a re v ery diffic u lt to de ve lop th rou g h tra ditiona l
bee n d esig ne d to fo cu s on the indu stry de fine d rele va nt ou tco m es, ra th er th a n old pra ctice o f
perform a nce da y of pra ctica l ex perim ent w h ich g enera te s inte rest a nd a lso, the y c a n h a ve ide a
com p etenc y, indu stry re lev a nt skills, c ou rse o u tcom e s a s w ell a s p ra ctic a l ou tc om es w hich
pra ctica l.T he stu de nt sw illa lsoh a ve a cle a ride a ofsafety and ne ce ssa rypre ca u tionsto bet ake nw h ile
3|Page
226170316038
Life-long learning: Ability to analyze individual needs and engage in updating in the
context of technological changes
4|Page
226170316038
Course Outcomes(COs):
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
226170316038
1 UseCancerDatasetfordetectingwhetherthecancer
cells in data are benign or malignant.
Thedatacontains2typesofcancers:1.benigncancer
(B)and2.Malignantcancer(M).UserelevantML
techniques forthesame.
2 Implementfollowingactivationfunctionsusing
pythontobuildsimpleneuralnetwork.a.ReLUb.Sig
moidc.Tanh
Implement following feed forward neural
3 networkusing python programming: a. Single layer
feedforwardneuralnetwork.b.Multi-layerfeedforwar
d
neuralnetwork.
4 Performfollowingdatapreprocessingontext/paragra
phusingNLTK library:
a. WriteaPythonprogramtotokenizew
ords,sentencewise.
b. Writeapythonprogramthatacceptsthelist
of tokenized word and stems it
intorootword.
c. Writeaprograminpythontoidentifythepart
ofspeechforeachwordinthetext.
d. WriteaPythonNLTKprogramtoremovest
opwordsfromagiventext.
e. Write a python program for identifyingand
correcting misspelled words in a
giventext,suchasanessayoraletter.
5
ImplementfollowingWordembeddingt
echniquesinNLP.
a. TFIDF-TermFrequencyInversedocumentF
requency
b. BOW(BagofWords)
c. Word2Vec
6
ImplementPreTrainedwordEmbedding:GloVeTechn
iqueinNLP.
226170316038
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:
226170316038
PRACTICAL–2
AIM: Implement following activation functions using python to build simple neural network.
a. ReLU
b. Sigmoid
c. Tanh
CODE:
226170316038
OUTPUT:
226170316038
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.
OUTPUT:
226170316038
PRACTICAL–4(a)
AIM: Write a Python program to tokenize words, sentence wise using NLTK library.
CODE:
OUTPUT:
226170316038
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:
226170316038
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:
226170316038
PRACTICAL–4(d)
AIM: Write a Python NLTK program to remove stop words from a given text using NLTK.
CODE:
OUTPUT:
226170316038
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:
226170316038
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:
226170316038
OUTPUT:
226170316038
Practical-6
OUTPUT: