0% found this document useful (0 votes)
0 views

LPIII assignment for exam Nov24

The document outlines lab assignments for the LP III course for the examination year 2024-25, covering topics in machine learning, blockchain, and data structures and algorithms (DAA). Each assignment includes specific tasks such as data preprocessing, model building, and performance evaluation for various datasets. The assignments also involve practical applications like Ethereum transactions and smart contract development.

Uploaded by

nandawandhekar03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

LPIII assignment for exam Nov24

The document outlines lab assignments for the LP III course for the examination year 2024-25, covering topics in machine learning, blockchain, and data structures and algorithms (DAA). Each assignment includes specific tasks such as data preprocessing, model building, and performance evaluation for various datasets. The assignments also involve practical applications like Ethereum transactions and smart contract development.

Uploaded by

nandawandhekar03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

LP III lab assignments for examination year 2024-25

Machine learning

Assignment 1

Read the given datasets 'bank_marketing.csv'

Kindly use this attachment Bank Marketing Data Description

Load the necessary libraries

load the given dataset and prepare the dataset by following the steps
given below:

• Ensure the datatypes of the columns are appropriate


• Drop the variable “Unnamed: 0”, missing values, duplicated values
• Convert the categorical variables into dummy variables
• Split the data into train (70%), test (30%) and set random state as 0

Build a KNN model using the train dataset (k=7) and. Using the model that
has been built, answer the following question.

What is the value of accuracy of the model on the test dataset?

Assignment 2

Read the given datasets” bank_train.csv” for training the model


Read the given datasets” bank_test.csv” for testing the model

Kindly use this attachment Bank Marketing Data Description

Drop the missing values for training and test data.

spilt the indpendent and dependent variables for test data and train data
Build a KNN model for classification using the train dataset (k=11)

What is the accuracy of the model?

How many samples are misclassified by the model?

Assignment 3

Read the data Uber dataset

The dataset contains the following fields:

 key - a unique identifier for each trip


 fare_amount - the cost of each trip in usd
 pickup_datetime - date and time when the meter was engaged
 passenger_count - the number of passengers in the vehicle (driver entered value)
 pickup_longitude - the longitude where the meter was engaged
 pickup_latitude - the latitude where the meter was engaged
 dropoff_longitude - the longitude where the meter was disengaged
 dropoff_latitude - the latitude where the meter was disengaged

. Perform following tasks:


1. Pre-process the dataset.
2. Identify outliers.
3. Implement linear regression model to predict the price of the Uber ride from a
given pickup point to the agreed drop-off location
5. Find out RMSE score

Assignment 4

Read the data Uber dataset


The dataset contains the following fields:

 key - a unique identifier for each trip


 fare_amount - the cost of each trip in usd
 pickup_datetime - date and time when the meter was engaged
 passenger_count - the number of passengers in the vehicle (driver entered value)
 pickup_longitude - the longitude where the meter was engaged
 pickup_latitude - the latitude where the meter was engaged
 dropoff_longitude - the longitude where the meter was disengaged
 dropoff_latitude - the latitude where the meter was disengaged

Perform following tasks:


1. Pre-process the dataset.
2. Identify outliers.
3. Implement random forest model to predict the price of the Uber ride from a
given pickup point to the agreed drop-off location
5. Find out RMSE score

Assignment 5

Given a bank customer data (churn_modelling.csv) , build a neural network-based


classifier that can determine whether they will leave or not in the next 6 months.
Dataset Description: The case study is from an open-source dataset from Kaggle.
The dataset contains 10,000 sample points with 14 distinct features such as
CustomerId, CreditScore, Geography, Gender, Age, Tenure, Balance, etc.
Link to the Kaggle project:
Perform following steps:
1. Read the dataset.
2. Distinguish the feature and target set and divide the data set into training and test
sets.
3. Normalize the train and test data.
4. Initialize and build the model.

5 Print the accuracy score and confusion matrix

Assignment 6

Given the medical data (diabetics.csv) having features like


Pregnancies Glucose BloodPressure SkinThickness Insulin BMI Pedigree Age

Implement K-Nearest Neighbors algorithm on diabetes.csv dataset to predict


whether person will be diabetic or not? Compute confusion matrix, accuracy,
error rate, precision and recall on the given dataset.
Block chain assignments

Assignment 7

Install the MetaMask wallet extension and perform a series of


Ethereum transactions to observe and analyze the spending of
Ether (ETH) per transaction.

Assignment 8

Create a personalized eWallet using MetaMask for managing


cryptocurrency transactions, including sending, receiving, and storing
digital assets securely.

Assignment 9

Write a smart contract on a test network for Bank account of a customer


for following operations:
a. Deposit Money
b. Show Balance

Assignment 10

Write a program in solidity to create Student data. Use the following


constructs:
a. Structures
b. Arrays
DAA assignments

Assignment 11

Write a program to calculate Fibonacci numbers and find its step count.

Assignment 12

Implement job sequencing with deadlines using a greedy method.

Assignment 13

Write a program to solve a fractional Knapsack problem using a greedy


method.

Assignment 14

Write a program to solve a 0-1 Knapsack problem using dynamic


programming or branch and bound strategy.

You might also like