Skip to content

This repository contains code and resources related to the Decision Tree Classification assignment using Python in Google Colab. The assignment covers loading and understanding the dataset, training a decision tree model, preparing data for training, visualizing the decision tree, evaluating the model, and conducting additional analysis.

Notifications You must be signed in to change notification settings

Samveelkhan22/Decision-Tree-Classification-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Decision Tree Classification in Google Colab

This repository contains code and resources related to the Decision Tree Classification assignment using Python in Google Colab. The assignment covers loading and understanding the dataset, training a decision tree model, preparing data for training, visualizing the decision tree, evaluating the model, and conducting additional analysis.

Dataset

The dataset used for this project is a modified version of the Kaggle dataset, available in the weather.csv file. It includes 1281 rows with 4 features and 1 output, representing weather conditions.

Code Structure

  • 01_import_libraries.ipynb: Import necessary libraries.
  • 02_load_dataset.ipynb: Load the dataset and print its content.
  • 03_prepare_data.ipynb: Split the dataset into training and testing sets.
  • 04_train_decision_tree.ipynb: Train a decision tree model with Scikit-Learn.
  • 05_visualize_decision_tree.ipynb: Visualize the trained decision tree.
  • 06_evaluate_model.ipynb: Evaluate the model and calculate accuracy.
  • 07_extra_credit.ipynb: Additional analysis for extra credit.

Usage

  1. Open and run each notebook in order.
  2. Follow the instructions and code comments within each notebook.

License

This project is licensed under the MIT License.

About

This repository contains code and resources related to the Decision Tree Classification assignment using Python in Google Colab. The assignment covers loading and understanding the dataset, training a decision tree model, preparing data for training, visualizing the decision tree, evaluating the model, and conducting additional analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published