Machine Learning Lab (AM505PC) syllabus for B.Tech III Year I Semester.
Vision and Mission of ACE Engineering College
Vision
To build a strong, dynamic, and inclusive alumni network that contributes meaningfully to the academic excellence, professional growth, and societal impact of ACE Engineering College.
Mission
- To foster lifelong relationships between alumni and the institution.
- To promote continuous interaction among alumni, students, faculty, and management.
- To encourage alumni participation in academic, technical, and career-oriented activities.
- To support institutional development through knowledge sharing, mentoring, and resource mobilization.
- To uphold the values, traditions, and reputation of ACE Engineering College.
Vision of the Department
To be an epicentre of excellence in education by offering cutting-edge technologies, research, and product-based opportunities to students, enabling them to succeed in global professional competitions with a foundation of core knowledge, entrepreneurial skills, ethical values, and social responsibility.
Mission of the Department
Imparting quality technical education to young computer engineers by providing them
- M1: Impart quality technical education with state-of-the-art laboratories, analytical and core technical skills of international standards, delivered by qualified and experienced faculty.
- M2: Prepare students for global professional competitions, examinations for higher studies, and employment in product-based companies.
- M3: Develop professional attitudes, research aptitude, critical reasoning, problem-solving skills, and technical consultancy capabilities by providing training in cutting-edge technologies.
- M4: Promote and nurture knowledge, lifelong learning, entrepreneurial practices, ethical values, and social responsibility.
Programme Educational Objectives (PEOs)
PEO1: Equip students with strong foundations in mathematics, statistics, programming, and machine learning for solving real-world problems.
PEO2: Enable students to design, develop, and implement machine learning models using modern programming languages and software tools.
PEO3: Develop analytical thinking, problem-solving abilities, and data-driven decision-making skills through practical laboratory experiments.
PEO4: Prepare students for higher education, research, entrepreneurship, and successful careers in Artificial Intelligence, Machine Learning, and Data Science.
PEO5: Encourage lifelong learning, professional ethics, teamwork, and effective communication in multidisciplinary environments.
Programme Outcomes (POs)
After successful completion of the Machine Learning Laboratory, students will be able to:
PO1: Apply knowledge of mathematics, statistics, computer science, and engineering fundamentals to machine learning problems.
PO2: Identify, formulate, analyze, and solve data-driven problems using appropriate machine learning techniques.
PO3: Design and implement machine learning models for prediction, classification, clustering, and regression tasks.
PO4: Conduct experiments, analyze datasets, interpret results, and draw meaningful conclusions.
PO5: Use modern engineering tools, programming languages, libraries, and frameworks such as Python, NumPy, Pandas, SciPy, Matplotlib, and Scikit-learn.
PO6: Understand the impact of machine learning solutions in societal, environmental, and industrial contexts.
PO7: Apply ethical principles while handling data and developing intelligent systems.
PO8: Function effectively as an individual and as a member or leader in multidisciplinary teams.
PO9: Communicate technical concepts, experimental findings, and project results effectively.
PO10: Recognize the importance of lifelong learning and adapt to emerging technologies in AI and Machine Learning.
Programme Specific Outcomes (PSOs)
After completing the Machine Learning Laboratory, students will be able to:
PSO1: Perform statistical analysis using Python libraries including Statistics, NumPy, SciPy, and Math.
PSO2: Apply data preprocessing, visualization, and exploratory data analysis using Pandas and Matplotlib.
PSO3: Develop supervised learning models such as Linear Regression, Multiple Linear Regression, Logistic Regression, Decision Trees, and K-Nearest Neighbors.
PSO4: Implement unsupervised learning techniques such as K-Means Clustering for data grouping and pattern discovery.
PSO5: Evaluate and compare machine learning algorithms using appropriate performance metrics and parameter tuning techniques.
PSO6: Build complete machine learning solutions by integrating data preprocessing, model training, testing, evaluation, and visualization.
Course Objective
- To provide an overview of various machine learning techniques and demonstrate them using Python.
Laboratory Course Outcomes (COs)
CO1 Apply Python programming and scientific libraries for statistical computations and data analysis. CO2 Perform data preprocessing, visualization, and exploratory analysis using Pandas and Matplotlib. CO3 Develop and evaluate regression models for prediction problems using Scikit-learn. CO4 Implement classification algorithms including Decision Tree, KNN, and Logistic Regression. CO5 Apply clustering techniques such as K-Means to discover hidden patterns in datasets. CO6 Analyze and compare the performance of different machine learning algorithms through a mini project.
| CO1 | Apply Python programming and scientific libraries for statistical computations and data analysis. |
| CO2 | Perform data preprocessing, visualization, and exploratory analysis using Pandas and Matplotlib. |
| CO3 | Develop and evaluate regression models for prediction problems using Scikit-learn. |
| CO4 | Implement classification algorithms including Decision Tree, KNN, and Logistic Regression. |
| CO5 | Apply clustering techniques such as K-Means to discover hidden patterns in datasets. |
| CO6 | Analyze and compare the performance of different machine learning algorithms through a mini project. |
List of Experiments
| Exp. No. | Experiment |
|---|---|
| 1 | Write a Python program to compute Central Tendency Measures (Mean, Median, Mode) and Measures of Dispersion (Variance, Standard Deviation). |
| 2 | Study Python basic libraries such as Statistics, Math, NumPy, and SciPy. |
| 3 | Study Python libraries for ML applications such as Pandas and Matplotlib. |
| 4 | Write a Python program to implement Simple Linear Regression. |
| 5 | Implement Multiple Linear Regression for House Price Prediction using scikit-learn. |
| 6 | Implement a Decision Tree using scikit-learn and perform parameter tuning. |
| 7 | Implement K-Nearest Neighbors (KNN) using scikit-learn. |
| 8 | Implement Logistic Regression using scikit-learn. |
| 9 | Implement K-Means Clustering. |
| 10 | Performance analysis of Classification Algorithms on a specific dataset (Mini Project). |
Text Book
- Tom M. Mitchell – Machine Learning (MGH).
Reference Book
- Stephen Marsland – Machine Learning: An Algorithmic Perspective (Taylor & Francis).
Install python
https://youtu.be/rgf0-Uypb28?si=SWeb1LZo_3ziqO08
LAB 1
1. Find mean of numbers?
OUTPUT
Mean = 30.0
2. Find median of numbers?
OUTPUT
Median = 30
3. Find mode of numbers?
OUTPUT
Mode = 20
4. Find Variance of numbers?
OUTPUT
Variance = 200.0
5. Find standard deviation of numbers?
OUTPUT
Standard Deviation = 14.142135623730951
6. Find mean, median, mode, variance and standard deviation of numbers?
OUTPUT
Enter numbers separated by space: 5 6 4 8 5 9 4 5 6 8 9 2 1 45
----- Statistical Measures -----
Mean = 8.357142857142858
Median = 5.5
Mode = 5.0
Variance = 117.01648351648352
Standard Deviation = 10.817415750376036
LAB 2
1. Find mean with statistics library?
OUTPUT
Mean: 30
Median: 30
Mode: 10
Variance: 250
Standard Deviation: 15.811388300841896
2. Write a simple program using math library?
OUTPUT
Square Root: 5.0
Power (5^2): 25.0
Factorial of 5: 120
Value of Pi: 3.141592653589793
Value of e: 2.718281828459045
Ceil of 4.3: 5
Floor of 4.7: 4
3. Write a simple python program using scipy library?
OUTPUT
Mean: 30.0 Variance: 250.0 Standard Deviation: 15.811388300841896
4. Write a simple program using numpy?
OUTPUT
Array: [10 20 30 40 50]
Sum: 150
Mean: 30.0
Maximum: 50
Minimum: 10
5. Write a python program using statistics, math, scipy and numpy?
OUTPUT
=== Statistics Library === Mean: 30 Median: 30 Mode: 10 === Math Library === Square Root of 25: 5.0 Factorial of 5: 120 Value of Pi: 3.141592653589793 === NumPy Library === Array: [10 20 30 40 50] Sum: 150 Average: 30.0 Maximum: 50 Minimum: 10 === SciPy Library === Mean: 30.0 Variance: 250.0 Standard Deviation: 15.811388300841896
LAB 3
1. Write a python program using pandas library?
OUTPUT
Name Marks
0 Alice 85
1 Bob 90
2 Charlie 78
2. Write a python program using matplotlib library?
OUTPUT
3. line graph
OUTPUT
4. Bar graph
OUTPUT
5. Pie chart
OUTPUT
6. Column chart
OUTPUT
LAB 4
1. Write a simple python code for linear regression using scikit-learn
OUTPUT
LAB 5
1. Implement Multiple Linear Regression for House Price Prediction using scikit-learn.
OUTPUT
Predicted House Price = 469158.87850467284
LAB 6
1. Implement a Decision Tree using scikit-learn and perform parameter tuning.
OUTPUT
Accuracy: 1.0
LAB 7
1. Implement a Decision Tree using scikit-learn and perform parameter tuning?
OUTPUT
Accuracy: 1.0
LAB 8
1. Implement Logistic Regression using scikit-learn?
OUTPUT
Accuracy: 1.0 Prediction for Age 42: 1
| LAB 9 |
1. Implement k-means clustering? # K-Means Clustering import matplotlib.pyplot as plt from sklearn.cluster import KMeans # Sample data X = [ [1, 2], [2, 3], [3, 3], [8, 7], [8, 8], [9, 8] ] # Create K-Means model kmeans = KMeans(n_clusters=2, random_state=0) # Train the model kmeans.fit(X) # Cluster labels print("Cluster Labels:", kmeans.labels_) # Cluster centers print("Cluster Centers:") print(kmeans.cluster_centers_) # Plot clusters plt.scatter([i[0] for i in X], [i[1] for i in X], c=kmeans.labels_) plt.scatter(kmeans.cluster_centers_[:,0], kmeans.cluster_centers_[:,1], color='red', marker='X', s=200) plt.title("K-Means Clustering") plt.xlabel("X") plt.ylabel("Y") plt.show() OUTPUT |
No comments:
Post a Comment