Repository navigation
fix(health-insurance): resolve missing model and label encoders, add train pipeline - #1725
Merged
sanjay-kv merged 1 commit intoNov 14, 2026
Conversation
Member
Author
|
@sanjay-kv Would you like to close this PR or merge? don't let it be open! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes critical runtime crashes and reproducibility issues in the Health Insurance Price Prediction application (
projects/prediction/Health Insurance Price prediction/):train.pywithinsurance.csv(1,338 samples) to train and exportlinear_regression_model.pkl(Test R�: 0.7833) andlabel_encoders.pkl.app.pyto useos.path.join(os.path.dirname(__file__), ...)forlinear_regression_model.pklandlabel_encoders.pklto eliminateFileNotFoundError.max(0.0, float(predicted_charge))and configured sensible default inputs (age=25,bmi=25.0,children=0).requirements.txtto remove restrictive legacy pins forpandas,numpy,scikit-learn,joblib, andstreamlitto ensure compatibility across modern Python versions (3.10-3.13).insurance.csv: Included the standard 1,338-row dataset for complete pipeline reproducibility.Fixes #1724
Type of change
Checklist: