Question
hello, I am struggling with my HW, and need some advice. This is what I did. importtensorflowastf importnumpyasnp importrequests importmatplotlib.pyplotasplt importpandasaspd fromtensorflowimportkeras data=pd.read_csv(https://raw.githubusercontent.com/stedy/Machine-Learning-with-R-datasets/master/insurance.csv) x=data.iloc[:,:5].values y=data.iloc[:,6].values
hello, I am struggling with my HW, and need some advice.
This is what I did.
importtensorflowastf
importnumpyasnp
importrequests
importmatplotlib.pyplotasplt
importpandasaspd
fromtensorflowimportkeras
data=pd.read_csv("https://raw.githubusercontent.com/stedy/Machine-Learning-with-R-datasets/master/insurance.csv")
x=data.iloc[:,:5].values
y=data.iloc[:,6].values
data.head()
how can i make a Machine Learning Model for predicting the insurance charge. (age,sex,bmi,children,smoker)?
also, i need to provide accuracy for my model and predict insurance charge for the following two person:
Age =24 ,sex = male, bmi = 36, children = 1, smoker = yes
Age=56, sex =female, bmi =33, children = 0, smoker = no
Thank you!
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