Loading

Python with R Studio

Python | Decision tree implementation. The Complete Python with R Studio Developer Course 2023 [Videos].

Decision Tree is one of the most powerful and popular algorithm. Decision-tree algorithm falls under the category of supervised learning algorithms. It works for both continuous as well as categorical output variables.

Prerequisites: Decision TreeDecisionTreeClassifiersklearnnumpypandas

Decision Tree is one of the most powerful and popular algorithm. Decision-tree algorithm falls under the category of supervised learning algorithms. It works for both continuous as well as categorical output variables.

In this Video, We are going to implement a Decision tree algorithm on the Balance Scale Weight & Distance Database presented on the UCI.

Data-set Description :

Title                : Balance Scale Weight & Distance Database
Number of Instances  : 625 (49 balanced, 288 left, 288 right)
Number of Attributes : 4 (numeric) + class name = 5
Attribute Information:
  1. Class Name (Target variable): 3
    • L [balance scale tip to the left]
    • B [balance scale be balanced]
    • R [balance scale tip to the right]
  2. Left-Weight: 5 (1, 2, 3, 4, 5)
  3. Left-Distance: 5 (1, 2, 3, 4, 5)
  4. Right-Weight: 5 (1, 2, 3, 4, 5)
  5. Right-Distance: 5 (1, 2, 3, 4, 5) Missing Attribute Values: None Class Distribution:
    1. 46.08 percent are L
    2. 07.84 percent are B
    3. 46.08 percent are R
    You can find more details of the dataset here.

See All

Comments (142 Comments)

Submit Your Comment

See All Posts

Related Posts

Python with R Studio / Youtube

How to install R Studio for python?

RStudio Connect helps teams of all sizes operationalize their data science work, and provides a single point of access to data products for decision makers. In this release, we have emphasized features that will help address maturing DevOps requirements within organizations seeking to deploy and scale data science. This release of RStudio Connect builds on the existing Server API, making experimental endpoints officially supported and introducing a brand new slate of API improvements based on feedback we’ve received from the community.
3-jan-2022 /9 /142

Python with R Studio / Youtube

How do I navigate in RStudio?

RStudio Connect helps teams of all sizes operationalize their data science work, and provides a single point of access to data products for decision makers. In this release, we have emphasized features that will help address maturing DevOps requirements within organizations seeking to deploy and scale data science. This release of RStudio Connect builds on the existing Server API, making experimental endpoints officially supported and introducing a brand new slate of API improvements based on feedback we’ve received from the community.
3-jan-2022 /9 /142

Python with R Studio / Blog

What is difference between DataFrame and DataSet?

A data frame is a table or a two-dimensional array-like structure in which each column contains values of one variable and each row contains one set of values from each column. ... The data stored in a data frame can be of numeric, factor or character type. Each column should contain same number of data items.
3-jan-2022 /9 /142