要英语好一点 要求我发你 十几分钟就能做好
Create a Linear Regression model in Python
- Using the data below for bill and tips
- Use the 2 stubbed out python files as a starting point
- Manually build out a Linear Regression model in Excel (2 points) (这个两分的我自己做掉)
- Show calculation for EACH step in the excel
- Basically you are manually creating a model that calculates every step individually
- Use the Python starting scripts provided below (3 points)
- hw9.py (this is specific to what we are using it for - bills and tips)
- This is complete, except you need to change
- the value for line 8 and
- the name of your module
- marc_module.py (this is generic and does not mention bills or tips because we can using it for ANYTHING)
- Rename this file to match your name(Yixuan) or ID(yh3791)
- Create functions for each of the excel calculations and place between line 12 to 15
- Hint: You will need other global variables outside of the functions to help with the other steps (place these variables after line 5)
- Call each function from the above step in logical order, in calculate()
- Change predict to return a prediction for what ever value passed in
- DELIVERABLE
- 2 python files
- screenshot of the execution of hw9.py
DATASET
XY
billtip - 3810.35
- 5635.19
- 4822.77
- 1616.56
- 9328.98
- 5710.35
要求发来吧,我可以做。