Discuss the importance of data : Creating Decision tree in Python
Interactive Video
•
Computers
•
9th - 10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the first step in setting up a regression or classification model using sklearn?
Evaluating the model performance
Predicting the dependent variable
Creating a regression or classifier object
Importing the dataset
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to create a regression tree object in sklearn?
tree.RandomForestRegressor
tree.DecisionTreeRegressor
tree.GradientBoostingRegressor
tree.DecisionTreeClassifier
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why is it important to set a maximum depth for a decision tree?
To increase the accuracy
To prevent overfitting
To simplify the code
To reduce the training time
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to fit the training data into the regression tree object?
rectree.evaluate
rectree.apply
rectree.train
rectree.fit
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you view the predicted values on the test dataset?
By writing Y_test_pred
By checking the model accuracy
By using the rectree.evaluate method
By printing the Y_train variable
Similar Resources on Wayground
6 questions
Suicide bomb kills 14 Nepalese guards in Kabul
Interactive video
•
9th - 10th Grade
11 questions
The algorithm that started google
Interactive video
•
9th - 10th Grade
6 questions
The Monty Hall Problem: Will you switch or stay?
Interactive video
•
10th - 12th Grade
6 questions
SHIKUNGA
Interactive video
•
9th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade