0% found this document useful (0 votes)
41 views3 pages

Rohit Pycaret File

Rohit Kumar Gupta, a Computer Science & Engineering student, conducted an experiment using Google Colab to explore input datasets for building a classification model. He imported the diabetes dataset, checked the shape and dtypes, and printed the head and tail to analyze the data. Rohit documented the learning outcomes and was evaluated based on his performance, viva voce, and submission of the work sheet.

Uploaded by

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

Rohit Pycaret File

Rohit Kumar Gupta, a Computer Science & Engineering student, conducted an experiment using Google Colab to explore input datasets for building a classification model. He imported the diabetes dataset, checked the shape and dtypes, and printed the head and tail to analyze the data. Rohit documented the learning outcomes and was evaluated based on his performance, viva voce, and submission of the work sheet.

Uploaded by

rahul200three
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

University Institute of Engineering

Department of Computer Science & Engineering

Experiment: 04
Student Name: Rohit Kumar Gupta UID: 23BCS11965
Branch: Computer Science & Engineering Section/Group:414-A
Semester: 1st Date of Performance: 05th Oct 23
Subject Name: Distruptive Technology Subject Code: 23ECH-102

1. Aim of the Practical: Explore input datasets for building classification model.

2. Tool Used: Google Colaboratory

3. Basic Concept/ Command Description:


Google Colab: It is basically a free notebook environment that runs fully in the cloud. It
has features that help you to edit documents like the same way you work with Google Docs.
Colab supports many popular and high-level machine learning libraries which can be easily
loaded in your notebook.

4. Code:
Program 1:
import pandas as pd

Program 2:
!pip install -- pre pycaret
print("Pycaret installed successfully")

Program 3:
from pycaret.utils import version
version()

Output:
‘3.1.0’

Program 4:
from pycaret.datasets import get_data

Program 5:
University Institute of Engineering
Department of Computer Science & Engineering

datasets = get_data('index')

Program 6:
rohitguptadataset = get_data("diabetes")

Output:
Plasma glucose 2-Hour Body mass
Diastolic Triceps
concentration a serum index Diabetes
Number blood skin fold Age Class
2 hours in an insulin (weight in pedigree
of times pressure thickness (years) variable
oral glucose (mu kg/(height function
pregnant (mm Hg) (mm)
tolerance test U/ml) in m)^2)

0 6 148 72 35 0 33.6 0.627 50 1

1 1 85 66 29 0 26.6 0.351 31 0

2 8 183 64 0 0 23.3 0.672 32 1

3 1 89 66 23 94 28.1 0.167 21 0

4 0 137 40 35 168 43.1 2.288 33 1

Program 7:
rohitguptadataset.shape

Output:
(768, 9)

Program 8:
rohitguptadataset.head()

Program 9:
df = pd.read_csv('/content/diabetes.csv')

Program 10:
df.head()

Program 11:
df.tail()

Program 12:
University Institute of Engineering
Department of Computer Science & Engineering

df.dtypes

Output:
Pregnancies int64
Glucose int64
BloodPressure int64
SkinThickness int64
Insulin int64
BMI float64
Diabetes Pedigree Function float64
Age int64
Outcome int64

7. Additional Creative Inputs (If Any):

Learning outcomes (What I have learnt):

1. How to import pandas module.

2. How to install pre-pycaret.

3. How to import datasets.

4. How to import particular dataset.

5. How to print head and tail.

Evaluation Grid:

Sr. Parameters Marks Obtained Maximum Marks


No.
1. Student Performance 12
(Conduct of experiment)
2. Viva Voce 10
3. Submission of Work Sheet 8
(Record)
Signature of Faculty (with Date): Total Marks Obtained: 30

You might also like