Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Linear Regression Learner (40 points) 1) Split the voting dataset into training and testing subsets by the ratio 80/20. a. Train a Logistic Regression

image text in transcribed

2. Linear Regression Learner (40 points) 1) Split the voting dataset into training and testing subsets by the ratio 80/20. a. Train a Logistic Regression classifier, what is the prediction accuracy of the model? b. Print the probability estimates for the prediction. Compared to decision tree, is there any difference? c. Can we use Linear Regression to model any of the three problems? Why? 3. (*) Regression Analysis (30) noints) The above table lists the 14 days of Jason playing tennis records. Use NumPy to represent the data as array 1) Train a linear regression model with the above dataset, what is R-squared score? What is the prediction result for Day 15 (Rain, Hot, High, Weak)? 2) Train a regression tree model with the above dataset, what are the height and number of leaves? What is the prediction result for Day 15 (Rain, Hot, High, Weak)? 3) In decision tree learning, we use information entropy as the splitting criterion, why not use loss or error (like the loss used in linear regression) to split nodes, i.e., always choose the feature with the minimum loss for subsets after splitting the set

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions