πŸ₯ Healthcare Patient Classification using KNN Model

This repository contains a fully trained K-Nearest Neighbors (KNN) classification model designed for healthcare risk profiling and clinical data prediction. The model processes tabular patient records to categorize health risks or diagnostic categories.


πŸ“ Repository & Model Architecture

To ensure perfect reproducibility, the pipeline has been modularized into separate components. The repository consists of the following key artifacts:

  1. knn.pickle: The main trained K-Nearest Neighbors classifier model instance.
  2. scale.pickle: A trained StandardScaler (or MinMaxScaler) used to normalize patient features, preventing distance-distortion in KNN.
  3. column.pickle: A serialized Python list containing the precise order of feature columns required by the model.
  4. healthcare_data.zip: A compressed archive containing the training/validation data split, data dictionaries, or metadata reports.

πŸ› οΈ Detailed Preprocessing & Pipeline Flow

The model expects raw healthcare input data to go through the exact same workflow used during training:

  1. Column Alignment: Match the incoming data features with the schema saved in column.pickle. Missing columns are imputed, and extra columns are dropped.
  2. Feature Scaling: Since KNN relies heavily on Euclidean/Manhattan distance calculations, features must be transformed using scale.pickle.
  3. Classification: The scaled matrix is passed to knn.pickle to compute nearest neighbors and return the output prediction.

πŸš€ Step-by-Step Implementation Guide

Prerequisites

Make sure your Python environment has the following libraries installed:

pip install scikit-learn pandas numpy
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support