Posts

Showing posts from March, 2026

Machine Learning Lab PCCSL508 Semester 5 KTU CS 2024 Scheme manual - Dr Binu V P

About Me - Dr Binu V P Syllabus Machine Learning Lab PCCSL508 KTU 2024 Scheme Learn Python well before You start(focus on numpy,pandas,matplotlib )- refer blog Build a strong understanding of the theory before moving on to programming Recommended Tools and Setup for Lab Lab Assignments Lab Assignment-1 Lab Assignment-2 Lab Assignment-3 Lab Assignment-4 Lab Assignment-5 Lab Assignment-6 Experiments Regression  Explore Californoa Housing Dataset(learn pandas,scikit-learn and matplotlib) Simple Linear Regression using Sample Data ( Single variable, Toy Example) Simpe Linear Regression using Sample Data ( using scikit-learn) Simple Linear regression using California Housing Dataset(CSV input) Simple Linear Regression Using California Housing Dataset (using scikit-learn) Simple Linear Regression using Gradient Descent ( Single variable, Toy Example) Simple Linear regression using Gradient Descent on California Housing Dataset Multiple Linear Regression using using Matrix Form ( Toy Data...

Lab Assignment-5

  Assignment-5 week 1 Aug Learning Objective: Compare MLE and MAP 1.Problem Statement An instructor conducted an online quiz for a small group of students. Each student's result is recorded as: 1 → Pass 0 → Fail The observed quiz results are 1, 1, 0, 1, 1, 0, 1, 0, 1, 1 Assume that the quiz outcomes follow a Bernoulli distribution , where θ = Probability of passing the quiz The instructor believes that, based on previous years, most students are likely to pass. This prior belief is represented by a Beta distribution with parameters α = 5 β = 2 Using the given data, Part A Estimate the probability of passing using Maximum Likelihood Estimation (MLE) Part B Estimate the probability of passing using Maximum A Posteriori (MAP) Part C Compare the MLE and MAP estimates. Part D Plot the Prior Distribution Likelihood Function Posterior Distribution on the same graph. Part E Comment on the following: Which estimate is affected by prior ...

Explore California Housing Dataset

  California Housing Dataset 🔹 Dataset Characteristics Feature Description Number of Instances                20,640 Number of Attributes                8 numerical predictive attributes + 1 target + 1 categorical Target Variable                Median House Value 🔹 Context This dataset is used in the book “Hands-On Machine Learning with Scikit-Learn and TensorFlow” by Aurélien Géron . It is widely used as an introductory dataset for machine learning because: Requires basic preprocessing Has clear and interpretable features Is moderate in size (not too small, not too large) 🔹 Dataset Description The dataset contains information about housing in California districts based on the 1990 U.S. Census . Each row represents a census block group , which is: The smallest geographical unit used by the census Typically contains ...

Lab Assignment-2

Assignment-2- week 2 July Learning Objective: Learn linear regression and polynomial regression 1.A university wants to predict a student's final examination score based on the number of hours studied. X: Number of hours studied Y: Final examination score (out of 100) Using the given dataset, implement Simple Linear Regression by computing the regression coefficients using the  Predict the examination score for a student who studies 9 hours . Plot the data points and regression line Dataset Student      Hours Studied (X) Exam Score (Y) 1           1 45 2      2 50 3      3 54 4      4 60 5      5 65 6      6 70 7      7 74 8      8 80 2.A real estate company wants to predict the selling price of a house based on two independent variables: X₁: Area of the house (in 1000 sq. ft.) X₂: Age of the house (in years) The...