B.E / [Link].
PRACTICAL END SEMESTER EXAMINATIONS, APRIL/MAY 2023
Fourth Semester
24AIP401 - MACHINE LEARNING LABORATORY
(Regulations 2021)
Time : 3 Hours Answer any one Question Max. Marks 100
1. a) To implement and demonstrate the candidate-elimination algorithm to output a description of the
set of all hypotheses consistent with the training examples, for a given set of training data examples
stored in a .CSV file.
b) Write a Python program that interchanges the first and last characters of a given string.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
2. a) Write a program to construct a Bayesian network to diagnose CORONA infection using
standard WHO Data Set.
b) Write a Python program to print all prime numbers less than 256.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
3. a) Write a program to implement k-Nearest Neighbor algorithm to classify the iris data set.
Print both correct and wrong predictions.
b) Extract the data from database using python.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
Page 1 of 2
4. a) The probability that it is Friday and that a student is absent is 3%. Since there are 5 school days in
a week, the probability that it is Friday is 20%. What is the probability that a student is absent given
that today is Friday? Apply Baye’s rule in python to get the result.
b) Write a python program to find largest of three numbers.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
5. a) Implement the finite words classification system using Back-propagation algorithm.
b) Write a python program to convert temperature to and from Celsius to Fahrenheit.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
6. a) Implement k-nearest neighbours classification using python.
b) Write a Python programming to exchange the values of two variables.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
7. a) Develop a program for Decision tree algorithm using python.
b) Write a Python programming to find distance between two points, circulate the values of n
variables.
Aim/Principle/
Apparatus Tabulation/Circuit/ Calculation Viva-Voce Record Total
required/Procedure Program/Drawing & Results
20 30 30 10 10 100
Page 2 of 2
8. a) Implement an algorithm to demonstrate the significance of genetic algorithm.
b) Write a python programming to print the pyramid pattern.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
9. a) Implement linear regression using python.
b) Write a Python class to convert an integer to a roman numeral.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
10. a) Write a program for Logistic regression algorithm using python.
b) Develop a Python Program to Solve Quadratic Equation.
Aim/Principle/ Tabulation/Circuit/ Calculation Viva-Voce Record Total
Apparatus Program/Drawing & Results
required/Procedure
20 30 30 10 10 100
Page 3 of 2