0% found this document useful (0 votes)
10 views6 pages

MLLAB2

The document outlines a lab experiment for BS Mechatronics Engineering students at Air University, focusing on supervised and unsupervised machine learning and importing datasets on Google Colab. It defines supervised learning as learning from labeled data and unsupervised learning as discovering patterns from unlabeled data. The lab tasks include writing code to import datasets and analyzing their features and classes.

Uploaded by

Samiullah
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)
10 views6 pages

MLLAB2

The document outlines a lab experiment for BS Mechatronics Engineering students at Air University, focusing on supervised and unsupervised machine learning and importing datasets on Google Colab. It defines supervised learning as learning from labeled data and unsupervised learning as discovering patterns from unlabeled data. The lab tasks include writing code to import datasets and analyzing their features and classes.

Uploaded by

Samiullah
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/ 6

Department of Mechatronics

Engineering
Air University, Islamabad, Pakistan

Program: BS Mechatronics Engineering Semester:


Subject Machine Learning Lab Date: …………….

Experiment 2: Introduction to supervised and unsupervised machine learning and how to import
Dataset on google colab.
OBJECTIVES:

1. To become familiar with supervised and unsupervised Machine Learning.


2. To understand how to import dataset on colab.

Name: Roll no:

Performance Lab Report

Description Total Marks Description Total Marks


Marks Obtained Marks Obtained
Ability to 5 Organization/Structure 5
conduct
Experiment
Data Analysis & 5 Results 5
Interpretation
Total Marks obtained
Remarks (if any)………………………………………………..

Name & Signature of faculty: …………………………………


Introduction to supervised and unsupervised learning and how to import
Dataset on google colab
Introduction
Machine learning is a field of computer science that gives computers the ability to learn without being
explicitly programmed. Supervised learning and unsupervised learning are two main types of machine
learning.
Supervised Learning
Supervised learning is a type of machine learning algorithm that learns from labeled data. Labeled data
is data that has been tagged with a correct answer or classification.
Supervised learning, as the name indicates, has the presence of a supervisor as a teacher. Supervised
learning is when we teach or train the machine using data that is well-labelled. Which means some data is
already tagged with the correct answer. After that, the machine is provided with a new set of examples
(data) so that the supervised learning algorithm analyses the training data (set of training examples) and
produces a correct outcome from labeled data.
Let’s say you have a fruit basket that you want to identify. The machine would first analyze the
image to extract features such as its shape, color, and texture. Then, it would compare these
features to the features of the fruits it has already learned about. If the new image’s features are
most similar to those of an apple, the machine would predict that the fruit is an apple.
For instance, suppose you are given a basket filled with different kinds of fruits. Now the first
step is to train the machine with all the different fruits one by one like this:
 If the shape of the object is rounded and has a depression at the top, is red in color, then
it will be labeled as –Apple.
 If the shape of the object is a long curving cylinder having Green-Yellow color, then it
will be labeled as –Banana.
Now suppose after training the data, you have given a new separate fruit, say Banana from the
basket, and asked to identify it.
Since the machine has already learned the things from previous data and this time has to use it wisely. It
will first classify the fruit with its shape and color and would confirm the fruit name as BANANA and put
it in the Banana category. Thus the machine learns the things from training data(basket containing fruits)
and then applies the knowledge to test data(new fruit).
For example, a labeled dataset of images of Elephant, Camel and Cow would have each image tagged with either
“Elephant” , “Camel”or “Cow.”
Unsupervised Learning
Unsupervised learning is a type of machine learning that learns from unlabeled data. This means that the
data does not have any pre-existing labels or categories. The goal of unsupervised learning is to discover
patterns and relationships in the data without any explicit guidance.

Unsupervised learning is the training of a machine using information that is neither classified nor labeled
and allowing the algorithm to act on that information without guidance. Here the task of the machine is to
group unsorted information according to similarities, patterns, and differences without any prior training of
data.

Unlike supervised learning, no teacher is provided that means no training will be given to the machine.
Therefore the machine is restricted to find the hidden structure in unlabeled data by itself.

You can use unsupervised learning to examine the animal data that has been gathered and distinguish
between several groups according to the traits and actions of the animals. These groupings might
correspond to various animal species, providing you to categorize the creatures without depending on
labels that already exist.
Imagine you have a machine learning model trained on a large dataset of unlabeled images, containing
both dogs and cats. The model has never seen an image of a dog or cat before, and it has no pre-existing
labels or categories for these animals. Your task is to use unsupervised learning to identify the dogs and
cats in a new, unseen image.

For instance, suppose it is given an image having both dogs and cats which it has never seen.

Thus the machine has no idea about the features of dogs and cats so we can’t categorize it as ‘dogs and cats
‘. But it can categorize them according to their similarities, patterns, and differences, i.e., we can easily
categorize the above picture into two parts. The first may contain all pics having dogs in them and the
second part may contain all pics having cats in them. Here you didn’t learn anything before, which means
no training data or examples.

It allows the model to work on its own to discover patterns and information that was previously
undetected. It mainly deals with unlabelled data.
Dataset
A dataset in machine learning is a collection of data points used for training, validating, or testing a machine
learning model. It typically consists of a set of input-output pairs, where each input corresponds to a desired
output. Datasets can vary widely in size and complexity, and they are essential for developing and evaluating
machine learning algorithms.

How to Read Dataset

 Classes
 Features
 Samples
How to import dataset on colab?
Lab Tasks
 Write a code to import three different datasets on colab ,separate features and output classes and print
them.
 Also Mention No. of samples , Features and Classes.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy