File size: 926 Bytes
b542cfe
 
 
 
 
 
 
 
 
 
 
 
cd91fa9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
title: Maternal Risk Predict
emoji: πŸ†
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# Maternal Risk Prediction (Gradio)

This Hugging Face Space predicts high-risk pregnancy using a RandomForest model trained on a cleaned maternal dataset.

## Files
- maternal_rf_model.joblib β€” trained model pipeline
- maternal_metadata.json β€” feature metadata
- maternal_cleaned.csv β€” cleaned dataset (for defaults and reference)
- app.py β€” Gradio app

## Features
- Numeric: Age, Gravida, GestationWeeks, WeightKg, HeightCm, BP_Systolic, BP_Diastolic, FetalHR
- Categorical: Anaemia, Jaundice, FetalPosition, FetalMovement, UrineAlbumin, UrineSugar

## Output
- Prediction: "High Risk" or "Not High Risk"
- Probability_high_risk: model probability for the positive class