0% found this document useful (0 votes)
2 views2 pages

2

The document outlines an assignment to implement a Decision Tree Classifier for predicting student admissions based on various academic metrics. It details the steps required, including data preprocessing, model training, and evaluation, using a dataset available on Kaggle. Additionally, it includes theoretical concepts related to Decision Trees and poses several questions for further understanding of the topic.

Uploaded by

MANGAL KALE
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)
2 views2 pages

2

The document outlines an assignment to implement a Decision Tree Classifier for predicting student admissions based on various academic metrics. It details the steps required, including data preprocessing, model training, and evaluation, using a dataset available on Kaggle. Additionally, it includes theoretical concepts related to Decision Trees and poses several questions for further understanding of the topic.

Uploaded by

MANGAL KALE
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/ 2

Assignment No: 03

Title: Implementation of Decision Tree Classifier

Aim : To implement decision Tree for Classification


Problem statement :
3. Assignment on Classification technique
Every year many students give the GRE exam to get admission in foreign Universities. The data set
contains GRE Scores (out of 340), TOEFL Scores (out of 120), University Rating (out of 5), Statement of
Purpose strength (out of 5), Letter of Recommendation strength (out of 5), Undergraduate GPA (out of
10), Research Experience (0=no, 1=yes), Admitted (0=no, 1=yes). Admitted is the target variable.

Data Set Available on kaggle (The last column of the dataset needs to be changed to 0 or 1)
Data Set : https://www.kaggle.com/mohansacharya/graduate-admissions
The counselor of the firm is supposed check whether the student will get an admission or not based on his/
her GRE score and Academic Score. So to help the counselor to take appropriate decisions build a
machine learning model classifier using Decision tree to predict whether a student will get admission or
not.
A. Apply Data pre-processing (Label Encoding, Data Transformation….) techniques if necessary.
B. Perform data-preparation (Train-Test Split)
C. Apply Machine Learning Algorithm
D. Evaluate Model.

Objective :
1. Download data set
2. Apply preprocessing
3. Apply Decision tree algorithm

Theory:
Decision Tree: is the most powerful and popular tool for classification and prediction. A Decision tree is a
flowchart-like tree structure, where each internal node denotes a test on an attribute, each branch
represents an outcome of the test, and each leaf node (terminal node) holds a class label.
Following is a sample data set
Algorithm

Import the Required Packages


Read Given Dataset
1. Perform the label Encoding Mean Convert String value into Numerical values
2. Import and Apply Decision Tree Classifier
3. Predict value for the given Expression like [Age < 21, Income = Low, Gender = Female,
Marital Status = Married]? In encoding Values [1,1,0,0]
4. Import the packages for Create Decision Tree.
5. Check the Decision Tree Created based on Expression.

Decision Tree Generated on sample data set after Implementation of Code

Conclusion

In this way we learn that to how to create Decision Tree based on given decision, Find the Root
Node of the tree using Decision tree Classifier.

Questions

1. What is gini index? What is the Formula for Calculate same?


2. What is label Encoder? How it differ from One Hot Encoder?
3. What is Overfitting Problem while building a decision tree model?
4. What is Pre-pruning and Post pruning Approach in decision tree model?
5. What are different advantages and disadvantages of decision tree algorithm?

You might also like