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

Assignment

The document outlines an assignment for a Machine Learning and AI Basics course, consisting of multiple choice questions, short answer questions, and a coding exercise. It covers key concepts such as supervised and unsupervised learning, classification metrics, and model evaluation. The coding exercise involves using Python to implement a logistic regression model on a given dataset.

Uploaded by

Pavan Barhate
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Assignment

The document outlines an assignment for a Machine Learning and AI Basics course, consisting of multiple choice questions, short answer questions, and a coding exercise. It covers key concepts such as supervised and unsupervised learning, classification metrics, and model evaluation. The coding exercise involves using Python to implement a logistic regression model on a given dataset.

Uploaded by

Pavan Barhate
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Machine Learning and AI Basics : Assignments ( L3 )

Duration: 2 hours

Section A: Multiple Choice Questions (MCQs) [20 marks]

1. What is the primary goal of supervised learning?

a) Minimize error in predictions


b) Discover hidden patterns in data
c) Classify data into predefined categories
d) Uncover relationships between variables

2. Which algorithm is commonly used for regression problems in machine learning?

a) K-Nearest Neighbors
b) Decision Trees
c) Support Vector Machines
d) Linear Regression

3. What is the purpose of the activation function in a neural network?

a) Normalize input data


b) Introduce non-linearity to the model
c) Regularize the model
d) Control the learning rate

4. In unsupervised learning, what is the main objective?

a) Minimize prediction error


b) Classify data into predefined categories
c) Discover hidden patterns in data
d) Train a model with labeled examples

5. What does the term "overfitting" refer to in machine learning?

a) Model performs well on training data but poorly on new data


b) Model performs well on both training and test data
c) Model is too simple to capture underlying patterns
d) Model is perfectly fit to the training data
Section B: Short Answer Questions [30 marks]

6. Define the terms "precision" and "recall" in the context of classification metrics.

7. Explain the difference between reinforcement learning and supervised learning.

8. What is the purpose of the training-validation-test split in machine learning?

9. Provide an example of a real-world application where clustering is used.

Section C: Coding Exercise [50 marks]

Question 10: Programming with Python

You are given a dataset (data.csv) containing two columns: "Feature" and "Label." Using
the pandas library, load the dataset, split it into training and testing sets (80% training, 20%
testing), and train a logistic regression model to predict the labels based on the features.
Finally, evaluate the model's accuracy on the test set.

You might also like