Question: Using the vector assembler code and model coefficients code / output below, identify the coefficient for variable gender _ cd vecAssembler = VectorAssembler ( inputCols

Using the vector assembler code and model coefficients code/output below, identify the coefficient for variable gender_cd
vecAssembler = VectorAssembler(inputCols=['age','bmi','children','gender_cd','regionclassVec'], outputCol="features")
print("Coefficients:
"+ str(lrModel.coefficients))
Coefficients: [266.14327319957374,305.58895187335816,657.9542238790286,-6.143081589786737,24505.84141305071,-790.7327504859943,405.45129997979274,-563.7329390258363]
305.59
6.14
-6.14
24505.84

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!