shrutimalik123/the-dosage-decider-decision-tree-patient-personalization-engine — explained in plain English
Analysis updated 2026-05-18
Learn how Shannon entropy measures impurity in a data set.
See how information gain is used to pick the best data split.
Trace a sample patient through a decision tree to see the final outcome.
Study a dependency-free decision tree implementation in plain Python.
| shrutimalik123/the-dosage-decider-decision-tree-patient-personalization-engine | 0xallam/my-recipe | 0xhassaan/nn-from-scratch | |
|---|---|---|---|
| Stars | 0 | — | 0 |
| Language | Python | Python | Python |
| Last pushed | — | 2022-11-22 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 1/5 | 2/5 | 4/5 |
| Audience | researcher | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Only requires Python 3, no external packages needed.
The Dosage Decider is an educational simulation written in Python that teaches how decision tree classification works by walking through a pretend medical dosing scenario. You play the role of a clinical pharmacy specialist building a flowchart style rule engine that looks at patient traits, such as age ranges and metabolic function scores, and uses them to decide on a dosing recommendation. The real point of the project is teaching, not actually giving medical advice. It walks through three core ideas from machine learning: decision trees as a way of splitting data into smaller, more uniform groups, Shannon entropy as a way to measure how mixed up or unpredictable a group of data is, and information gain as the method used to pick which question or split reduces that unpredictability the most. As you work through it, you can see the entropy score calculated for the starting group of patients, then see how splitting the data lowers that score. Gameplay involves inspecting a set of sample patient records already labeled with past dosing decisions, watching the entropy calculation happen for that starting group, comparing candidate splits by their information gain, and finally tracing a new patient's profile step by step through the resulting tree to reach a final dosing outcome. The project is intentionally dependency free, meaning it only uses core Python and basic math, with no external machine learning libraries. To run it you need Python 3 installed, then you clone the repository, save the provided script as dosage_tree.py, and run it directly from the command line. There is no installation of extra packages required.
An educational Python simulation that teaches decision tree classification and entropy math through a pretend patient dosing scenario.
Mainly Python. The stack also includes Python.
The README does not state license terms.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
double-check against the repo, no cap.