AD-502 Machine Learning Lab - Exp 1-10
AD-502 Machine Learning Lab - Exp 1-10
LABORATORY MANUAL
Machine Learning
AD502
V SEM (AI&DS)
DEPARTMENT OF
ARTIFICIAL INTELLIGENCE AND DATA SCIENCE
DEPARTMENT OF
ARTIFICIAL INTELLIGENCE AND DATA SCIENCE
CERTIFICATE
..………………………….. has satisfactorily completed the course of experiments in Machine Learning laboratory, as
prescribed by Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal for V Semester of the Artificial Intelligence
Signature of
Faculty In-charge
DEPARTMENT OF
ARTIFICIAL INTELLIGENCE AND DATA SCIENCE
2024-25
List of Experiments
Code:
Output:
010101010
101010101
010101010
101010101
010101010
101010101
010101010
101010101
010101010
Viva Question:
1. What is NumPy in python?
2. Differentiate between NumPy and List.
3. How NumPy is useful in Machine Learning?
4. How slicing works in NumPy?
5. What is the default datatype of integer element in NumPy array?
Code:
Output:
Viva Question:
1. What are the advantages of NumPy?
2. What is range function in Python?
3. Define module in Python.
4. Explain some statistic methods in NumPy.
5. What is the use of arange function NumPy?
Code:
Output:
Viva Question:
Code:
Output:
Viva Question:
1. What are the uses of “pandas” in Machine Learning?
2. Which is the standard data missing marker in “pandas”?
3. What is PEP8?
4. What is the difference between dataset and data frame?
5. What is the role of “unique()” function in “pandas”?
Code:
Output:
Viva Question:
1. What is the need of data preprocessing?
2. Define categorical feature.
3. What is “OneHotEncoder”?
4. What is “Fit” method?
5. What is “Transform” in Machine Learning?
Code:
Viva Question:
1. What is Linear Regression?
2. What is predictor variable in machine learning?
3. What is the best ratio for training and test data?
4. What is the use of “fit-transform” method?
5. What is the use of “labelEncoder”?
Code:
Output:
Viva Question:
1. What is polynomial feature?
2. What is irreducible error?
3. Define bias in learning algorithm.
4. Where we can use polynomial regression?
5. What is the use of scatter plot?
Viva Question:
1. What is “overfitting”?
2. What is “underfitting”?
3. What is “bestfit” in learning algorithm?
4. Define bias-variance trade-off.
5. Define variance.
Output:
Viva Question:
1. What is use of StandardScaler?
2. What are the parameters for KNeighborsClassifier?
3. What is confusion matrix?
4. Define cross validation.
5. How we can balance bias and variance?
Output:
Viva Question:
1. What is hyper plane?
2. How to choose the best hyper plane?
3. What is kernel in SVR?
4. In which situation kernel is used?
5. What is random state?