Proyecto Regresión Lineal - Predicción de Costos de Seguros Médicos - #87
Open
sahidleal wants to merge 3 commits into
Open
Proyecto Regresión Lineal - Predicción de Costos de Seguros Médicos#87sahidleal wants to merge 3 commits into
sahidleal wants to merge 3 commits into
Conversation
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.
Descripción
Proyecto completo de Regresión Lineal para predecir el coste de seguros médicos basado en datos fisiológicos de clientes de 4Geeks Insurance S.L.
📊 Análisis y Procesamiento de Datos
Paso 1: Carga y Exploración
Paso 2: Limpieza y Preparación
Paso 3: Ingeniería de Características
Paso 4: Preparación para ML
🤖 Modelo de Machine Learning
Modelo: Regresión Lineal
Métricas de Entrenamiento:
Métricas de Test:
Conclusiones
✅ Excelente capacidad de generalización
✅ Rendimiento estable (sin overfitting)
✅ El modelo explica el 73% de la variabilidad del coste
✅ Conservar outliers garantiza predicciones realistas para casos de alto riesgo
📁 Archivos Generados
Datasets Procesados
X_train_CON_outliers.xlsx- Features de entrenamientoX_test_CON_outliers.xlsx- Features de testX_train_CON_outliers_norm.xlsx- Datos normalizadosX_train_CON_outliers_scal.xlsx- Datos escaladosy_train.xlsx- Target de entrenamientoy_test.xlsx- Target de testModelos y Reglas
norm_CON_outliers.pkl- Escalador StandardScalerscaler_CON_outliers.pkl- Escalador MinMaxScalersex_transformation_rules.json- Mapeo de génerossmoker_transformation_rules.json- Mapeo de fumadoresregion_transformation_rules.json- Mapeo de regiones📓 Notebook
src/explore.ipynb- Análisis completo paso a pasoProyecto desarrollado con Python, pandas, scikit-learn, matplotlib y seaborn