SAVRN
Search Contact SAVRN

Open-weight model · Tabular classification

heart_failure_prediction

by Abdalla Ahmed abdalla732/heart_failure_prediction

A Keras / TensorFlow neural network that predicts the presence of heart disease in patients using 11 clinical and demographic features. Educational and research purposes only. Explore how clinical features relate to heart disease risk. - Not a medical device.

Parameters
Context
Weights20.1 MB
Licensemit
AccessOpen weights
Monthly Downloads42

Model Card

By Abdalla Ahmed, published under mit, revision e5e3799e27cb.

A Keras / TensorFlow neural network that predicts the presence of heart disease in patients using 11 clinical and demographic features. Educational and research purposes only. Explore how clinical features relate to heart disease risk. - Not a medical device. Do not use for real clinical decisions. - Not validated on real-world hospital populations. from huggingfacehub import hfhubdownload import joblib import pandas as pd from tensorflow import keras modelpath = hfhubdownload("abdalla732/heartfailureprediction", "heartmodel.keras") scalerpath = hfhubdownload("abdalla732/heartfailureprediction", "scaler.joblib") colspath = hfhubdownload("abdalla732/heartfailureprediction"…

Read Abdalla Ahmed's full model card

Heart Failure Prediction — Keras Model

A Keras / TensorFlow neural network that predicts the presence of heart disease in patients using 11 clinical and demographic features.

Model Details

  • Developed by: Abdallah Ahmed
  • Model type: Binary classification (tabular data)
  • Framework: Keras 3 / TensorFlow 2.x
  • Format: .keras
  • License: MIT

Files in this Repo

File Purpose
heart_model.keras Trained Keras model
scaler.joblib StandardScaler fitted on training data
feature_columns.joblib Column names after one-hot encoding

Uses

Direct Use

Educational and research purposes only. Explore how clinical features relate to heart disease risk.

Out-of-Scope Use

  • Not a medical device. Do not use for real clinical decisions.
  • Not validated on real-world hospital populations.

How to Get Started

```python from huggingface_hub import hf_hub_download import joblib import pandas as pd from tensorflow import keras

Download model + preprocessing artifacts

model_path = hf_hub_download("abdalla732/heart_failure_prediction", "heart_model.keras") scaler_path = hf_hub_download("abdalla732/heart_failure_prediction", "scaler.joblib") cols_path = hf_hub_download("abdalla732/heart_failure_prediction", "feature_columns.joblib")

Load

model = keras.models.load_model(model_path) scaler = joblib.load(scaler_path) columns = joblib.load(cols_path)

Prepare a sample input

raw = pd.DataFrame([{ "Age": 54, "Sex": "M", "ChestPainType": "NAP", "RestingBP": 150, "Cholesterol": 195, "FastingBS": 0, "RestingECG": "Normal", "MaxHR": 122, "ExerciseAngina": "N", "Oldpeak": 0.0, "ST_Slope": "Up" }]) raw = pd.get_dummies(raw, drop_first=False) raw = raw.reindex(columns=columns, fill_value=0) X = scaler.transform(raw.values.astype("float32"))

Predict

prob = float(model.predict(X, verbose=0)[0][0]) print("Heart disease" if prob > 0.5 else "No heart disease", f"(p = {prob:.3f})")

Identity and Version

Repository
abdalla732/heart_failure_prediction
Publisher
Abdalla Ahmed
Task
Tabular classification
Modality
Tabular
Library
keras
Parameters
Not stated by the source
Languages
Not stated by the source
Revision
e5e3799e27cbc4733b0ad89078b82f72943039a6
First published
2026-09-11
Last updated
2026-09-11

Files and Weights

5 files, 20.1 MB in total.

Documentation1 file · 2.3 KB
Other3 files · 20.1 MB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
README.mdDocumentation2.3 KB
feature_columns.joblibOther310 B 5500fc6c9644
heart_model.kerasOther20.1 MB 44ddd81e0259
scaler.joblibOther1.6 KB e8ead6c8850c
.gitattributesRepository1.6 KB

License and Download

License
mit
Access
Open weights, no gate
Download from Abdalla Ahmed

Released by Abdalla Ahmed through its official repository on Hugging Face. Read the license.

Built From

  • Trained on (disclosed) fedesoriano/heart-failure-prediction

Questions About heart_failure_prediction

Can I use heart_failure_prediction commercially?

Yes. heart_failure_prediction is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Tabular classification

Nori-30M

Synthefy

Nori-30M is the ~29.2M-parameter variant of Nori, a tabular foundation model for regression via in-context learning (ICL). Given a few labeled rows as context, it predicts on new query rows in a single forward pass, with no task-specific training or fine-tuning. The model is trained entirely on synthetic data. Mean and median R² across 96 regression tasks from three public benchmark suites, on the same protocol as the base Nori: Stronger than the ~6M base on every suite. Evaluated with the bundled default inference config and the large-GPU protocol (up to 50k context rows per dataset). Paste this into Claude Code, Cursor, or any AI coding assistant and it will wire python from synthefynori…

Open weights apache-2.0 synthefy-nori

Model · Tabular classification

sap-rpt-1-oss

SAP

Go to SAP-RPT Playground ↗ Note: This model and repository were formerly known as ConTextTab. While the code and repository have now been updated in line with the new name sap-rpt-1-oss, the model checkpoint and functionality remain identical. Implementation of the deep learning model with the inference pipeline described in the paper "ConTextTab: A Semantics-Aware Tabular In-Context Learner". Tabular in-context learning (ICL) has recently achieved state-of-the-art (SOTA) performance on several tabular prediction tasks. Previously restricted to classification problems on small tables, recent advances such as TabPFN and TabICL have extended its use to larger datasets. While being…

Access requested at publisher apache-2.0 sap-rpt-1-oss

Model · Tabular classification

Nori

Synthefy

Nori is a tabular foundation model for regression via in-context learning (ICL). Given a few labeled rows as context, it predicts on new query rows in a single forward pass, with no task-specific training or fine-tuning. The model is trained entirely on synthetic data. Mean and median R² of the base model across 96 regression tasks from three public benchmark suites (single H200, up to 50K context rows per dataset): Large-N / long-context tables (common in TabArena) are the current focus of the large-table training stages. These numbers are reproducible end-to-end with one command — see Reproducing these numbers. Paste this into Claude Code, Cursor, or any AI coding assistant and it will…

Open weights apache-2.0 synthefy-nori

Model · Tabular classification

EXAONE-Tabular

LG AI Research

EXAONE Tabular is a transformer-based foundation model for tabular data that solves classification and regression through in-context learning: you pass the labeled rows to fit and the model predicts new rows in a single forward pass — no gradient updates and no per-dataset training. This repository is the exaonetabular inference runtime — a self-contained package that loads a released checkpoint and serves predictions through a small, scikit-learn-style API. The code here is permissively licensed; the released weights are non-commercial — see Both checkpoints are released: EXAONETabularClassifier and EXAONETabularRegressor each fetch their own weights with a single frompretrained() call.…

Open weights other

Model · Tabular classification

TabPFN-v2-clf

Prior Labs

TabPFN is a transformer-based foundation model for tabular data that leverages prior-data based learning to achieve strong performance on small tabular datasets without requiring task-specific training. For detailed usage examples and best practices, check out: - Python ≥ 3.9 - PyTorch ≥ 2.1 - scikit-learn ≥ 1.0 This repository hosts the production TabPFN-v2 base checkpoints. Files matching the pattern tabpfn-v2-classifier-finetuned-.ckpt are content-identical aliases of the corresponding base checkpoints (e.g. tabpfn-v2-classifier-finetuned-gn2p4bpt-xp6f0iqb.ckpt is identical to tabpfn-v2-classifier-gn2p4bpt.ckpt; tabpfn-v2-classifier-finetuned-zk73skhh.ckpt is identical to…

Open weights other tabpfn

Model · Tabular classification

tabfm-1.0.0-pytorch

Google

TabFM is a zero-shot tabular foundation model from Google Research. It supports classification and regression on structured/tabular data with mixed numerical and categorical columns, requiring no fine-tuning or hyperparameter search - training examples are passed as context and predictions are made in a single forward pass. This repository contains the PyTorch weights. For the JAX/Flax weights see You can also load directly using the HuggingFace Hub API: Developed by the Google Research team. - Tabular data with numerical and/or categorical columns - Binary and multiclass classification (up to 10 classes) TabFM uses alternating row and column attention to capture both feature interactions…

Open weights other tabfm