Classification Trees in Python, From Start To Finish

4.7
stars
32 ratings
11 reviews
Offered By
Rhyme
In this Guided Project, you will:

Create Classification Trees in Python

Apply Cost Complexity Pruning in Python

Apply Cross Validation in Python

Create Confusion Matrices in Python

Clock3 hours/week
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this 1-hour long project-based course, you will learn how to build Classification Trees in Python, using a real world dataset that has missing data and categorical data that must be transformed with One-Hot Encoding. We then use Cost Complexity Pruning and Cross Validation to build a tree that is not overfit to the Training Dataset. This course runs on Coursera's hands-on project platform called Rhyme. On Rhyme, you do projects in a hands-on manner in your browser. You will get instant access to pre-configured cloud desktops containing all of the software and data you need for the project. Everything is already set up directly in your Internet browser so you can just focus on learning. For this project, you’ll get instant access to a cloud desktop with (e.g. Python, Jupyter, and Tensorflow) pre-installed. Prerequisites: In order to be successful in this project, you should be familiar with Python and the theory behind Decision Trees, Cost Complexity Pruning, Cross Validation and Confusion Matrices. Notes: - This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Confusion MatrixClassification TreesCost Complexity PruningCross Validation

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Task 1: Import the modules that will do all the work

  2. Task 2: Import the data

  3. Task 3: Missing Data Part 1: Identifying Missing Data

  4. Task 4: Missing Data Part 2: Dealing With Missing Data

  5. Task 5: Format Data Part 1: Split the Data into Dependent and Independent Variables

  6. Task 6: Format the Data Part 2: One-Hot Encoding

  7. Task 7: Build A Preliminary Classification Tree

  8. Task 8: Cost Complexity Pruning Part 1: Visualize alpha

  9. Task 9: Cost Complexity Pruning Part 2: Cross Validation For Finding the Best Alpha

  10. Task 10: Building, Evaluating, Drawing, and Interpreting the Final Classification Tree

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

  • By purchasing a Guided Project, you'll get everything you need to complete the Guided Project including access to a cloud desktop workspace through your web browser that contains the files and software you need to get started, plus step-by-step video instruction from a subject matter expert.

  • Because your workspace contains a cloud desktop that is sized for a laptop or desktop computer, Guided Projects are not available on your mobile device.

  • Guided Project instructors are subject matter experts who have experience in the skill, tool or domain of their project and are passionate about sharing their knowledge to impact millions of learners around the world.

  • You can download and keep any of your created files from the Guided Project. To do so, you can use the “File Browser” feature while you are accessing your cloud desktop.

  • Guided Projects are not eligible for refunds. See our full refund policy.

  • Financial aid is not available for Guided Projects.

  • Auditing is not available for Guided Projects.

  • At the top of the page, you can press on the experience level for this Guided Project to view any knowledge prerequisites. For every level of Guided Project, your instructor will walk you through step-by-step.

  • Yes, everything you need to complete your Guided Project will be available in a cloud desktop that is available in your browser.

  • You'll learn by doing through completing tasks in a split-screen environment directly in your browser. On the left side of the screen, you'll complete the task in your workspace. On the right side of the screen, you'll watch an instructor walk you through the project, step-by-step.

More questions? Visit the Learner Help Center.