https://github.com/seasawher/linear-regression
FreeCodeCamp / Machine Learning with Python / Linear Regression Health Costs Calculator
https://github.com/seasawher/linear-regression
freecodecamp-project jupyter-notebook machine-learning python tensorflow
Last synced: 2 months ago
JSON representation
FreeCodeCamp / Machine Learning with Python / Linear Regression Health Costs Calculator
- Host: GitHub
- URL: https://github.com/seasawher/linear-regression
- Owner: Seasawher
- Created: 2023-07-27T13:17:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T15:35:21.000Z (almost 3 years ago)
- Last Synced: 2026-05-04T22:42:21.054Z (2 months ago)
- Topics: freecodecamp-project, jupyter-notebook, machine-learning, python, tensorflow
- Language: Jupyter Notebook
- Homepage: https://www.freecodecamp.org/learn/machine-learning-with-python/machine-learning-with-python-projects/linear-regression-health-costs-calculator
- Size: 331 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Linear Regression Health Costs Calculator
In this challenge, you will predict healthcare costs using a regression algorithm.
You are given a dataset that contains information about different people including their healthcare costs. Use the data to predict healthcare costs based on new data.
## Specifications
* Make sure to convert categorical data to numbers.
* Use 80% of the data as the `train_dataset` and 20% of the data as the `test_dataset`.
* pop off the "expenses" column from these datasets to create new datasets called `train_labels` and `test_labels`.
* To pass the challenge, `model.evaluate` must return a Mean Absolute Error of under 3500. This means it predicts health care costs correctly within $3500.