Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Graph each logarithmic function. f(x) = log6 x

Answered: 1 week ago

Question

Describe the problems in the administration of disciplinary action.

Answered: 1 week ago

Question

Explain discipline and disciplinary action.

Answered: 1 week ago