Question
Logistic Regression we want to predict the gender of a person from a set of input parameters, namely height, weight, and age. Assume the same
Logistic Regression
we want to predict the gender of a person from a set of input parameters, namely height, weight, and age.
Assume the same training data:
D={(
(170,57,32),W),
((192,95,28),M),
((150,45,30),W),
((170,65,29),M),
((175,78,35),M),
((185,90,32),M),
((170,65,28),W),
((155,48,31),W),
((160,55,30),W),
((182,80,30),M),
((175,69,28),W),
((180,80,27),M),
((160,50,31),W),
((175,72,30),M),}
a)Implement logistic regression to classify this data (use the individual data elements,i.e.height,weight,andage,asfeatures).Yourimplementationshouldtakedifferentdatasetsasinputfor learning.
b)Use your logistic regression function to predict the classes for the data items :
(155,40,35),(170,70,32),(175,70,35),(180,90,20)
Given that the correct class labels for these items are W, M, W, M, respectively,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started