AI ADVANCED LAB FILE
Government Polytechnic Saharsa
Diploma 6th Semester (CSE/AI)
Subject: AI Advanced Lab
Name: ____________ Roll No: ____________
Session: 2025–26
CERTIFICATE
This is to certify that the student has successfully completed the AI Advanced Lab work as per
syllabus.
Teacher Signature: ____________
HOD Signature: ____________
INDEX
1. Introduction to Machine Learning
2. Data Preprocessing
3. KNN Algorithm
4. Linear Regression
5. Logistic Regression
6. SVM
7. K-Means Clustering
8. Artificial Neural Network
9. Neural Network Training
10. Perceptron
11. Adaline
12. Backpropagation
13. BAM
14. TensorFlow Introduction
15. Tensor Operations
16. TensorBoard
17. Model Building
Experiment 1: Introduction to Machine Learning
Aim:
To study and implement Introduction to Machine Learning in Artificial Intelligence.
Theory:
Machine Learning enables systems to learn from data and improve automatically without explicit
programming.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Introduction to Machine Learning was successfully performed.
Conclusion:
The concept of Introduction to Machine Learning was understood clearly.
Experiment 2: Data Preprocessing
Aim:
To study and implement Data Preprocessing in Artificial Intelligence.
Theory:
Data preprocessing includes cleaning, normalization, and transformation of raw data before
training.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Data Preprocessing was successfully performed.
Conclusion:
The concept of Data Preprocessing was understood clearly.
Experiment 3: KNN Algorithm
Aim:
To study and implement KNN Algorithm in Artificial Intelligence.
Theory:
KNN classifies data based on nearest neighbors using distance metrics.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on KNN Algorithm was successfully performed.
Conclusion:
The concept of KNN Algorithm was understood clearly.
Experiment 4: Linear Regression
Aim:
To study and implement Linear Regression in Artificial Intelligence.
Theory:
Linear Regression models the relationship between dependent and independent variables.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Linear Regression was successfully performed.
Conclusion:
The concept of Linear Regression was understood clearly.
Experiment 5: Logistic Regression
Aim:
To study and implement Logistic Regression in Artificial Intelligence.
Theory:
Logistic Regression is used for classification using sigmoid function.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Logistic Regression was successfully performed.
Conclusion:
The concept of Logistic Regression was understood clearly.
Experiment 6: SVM
Aim:
To study and implement SVM in Artificial Intelligence.
Theory:
SVM separates classes using a hyperplane with maximum margin.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on SVM was successfully performed.
Conclusion:
The concept of SVM was understood clearly.
Experiment 7: K-Means Clustering
Aim:
To study and implement K-Means Clustering in Artificial Intelligence.
Theory:
K-Means groups data into clusters based on similarity.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on K-Means Clustering was successfully performed.
Conclusion:
The concept of K-Means Clustering was understood clearly.
Experiment 8: Artificial Neural Network
Aim:
To study and implement Artificial Neural Network in Artificial Intelligence.
Theory:
ANN is inspired by biological neurons and processes data through layers.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Artificial Neural Network was successfully performed.
Conclusion:
The concept of Artificial Neural Network was understood clearly.
Experiment 9: Neural Network Training
Aim:
To study and implement Neural Network Training in Artificial Intelligence.
Theory:
Training adjusts weights using forward and backward propagation.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Neural Network Training was successfully performed.
Conclusion:
The concept of Neural Network Training was understood clearly.
Experiment 10: Perceptron
Aim:
To study and implement Perceptron in Artificial Intelligence.
Theory:
Perceptron is a single-layer neural network used for linear classification.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Perceptron was successfully performed.
Conclusion:
The concept of Perceptron was understood clearly.
Experiment 11: Adaline
Aim:
To study and implement Adaline in Artificial Intelligence.
Theory:
Adaline uses gradient descent and minimizes error continuously.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Adaline was successfully performed.
Conclusion:
The concept of Adaline was understood clearly.
Experiment 12: Backpropagation
Aim:
To study and implement Backpropagation in Artificial Intelligence.
Theory:
Backpropagation updates weights using error gradients.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Backpropagation was successfully performed.
Conclusion:
The concept of Backpropagation was understood clearly.
Experiment 13: BAM
Aim:
To study and implement BAM in Artificial Intelligence.
Theory:
BAM stores associative patterns and retrieves them bidirectionally.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on BAM was successfully performed.
Conclusion:
The concept of BAM was understood clearly.
Experiment 14: TensorFlow Introduction
Aim:
To study and implement TensorFlow Introduction in Artificial Intelligence.
Theory:
TensorFlow is an open-source library for deep learning.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on TensorFlow Introduction was successfully performed.
Conclusion:
The concept of TensorFlow Introduction was understood clearly.
Experiment 15: Tensor Operations
Aim:
To study and implement Tensor Operations in Artificial Intelligence.
Theory:
Tensor operations involve manipulation of multi-dimensional arrays.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Tensor Operations was successfully performed.
Conclusion:
The concept of Tensor Operations was understood clearly.
Experiment 16: TensorBoard
Aim:
To study and implement TensorBoard in Artificial Intelligence.
Theory:
TensorBoard is used for visualization of model performance.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on TensorBoard was successfully performed.
Conclusion:
The concept of TensorBoard was understood clearly.
Experiment 17: Model Building
Aim:
To study and implement Model Building in Artificial Intelligence.
Theory:
Deep learning models are built using layers and trained with data.
Algorithm:
1. Collect data
2. Preprocess data
3. Apply algorithm
4. Train model
5. Evaluate results
Code:
print('AI Lab Experiment')
Result:
The experiment on Model Building was successfully performed.
Conclusion:
The concept of Model Building was understood clearly.