|
Predict INR for patients on Coumadin
Fill in the form and click Predict. Or just click the "Demo" buttonPredict Vancomycin troughs for patients on IV Vanc
Fill in the form and click Predict. Or just click the "Demo" buttonSource Code
The code is open source, and released under the MIT License. The latest code is available on Github: https://github.com/dfdean/mlLib-
MLEngine
This takes a job file and uses it to:- Create a neural network as specified by the job file
- Run the neural network for both training and testing data
- Record the results in the job object
-
MLJob
The is the runtime to read and write MLJob files, which are XML files used to configure a neural network as well as save and restore the state of a neural net. It is used for several applications:- Specify the training and testing of a neural net, and save the final matrices
- Create a pre-trained neural net to make predictions
- Pass network state between processes, either two processes on a single machine or else over a network from a controller machine to worker compute servers.
-
TDF Tools
This implements TDF - Timeline Data Format. TDF is an xml file format that is designed to store time-series of data for medical applications.To read a TDF file, we typically iterate at several levels:
For each patient in the file For each data entry in the current patient
Additionally, you can identify several data windows within a single patient chart. An example data window may be all events between admission and discharge for a single hospital visit. So, you would instead iterate over:
For each patient in the partition For each event window in the patient For each data entry in the current window
-
xmlTools
These are tools for manipulating an XML file, built on top of the minidom layer.
-
testUtils.py
testUtils.py
Some utility procedures for testing and debugging.
Change History:
- Jan 1, 2021 - Predict multiple drug levels
- Allow mljobs to specify criteria for which nodes will be considered
- Client-side Javascript to unpack results and control the client GUI
- Define the server response message format
- Train networks for Warfarin, Vanc, Tac, Vori, Tobra, MTX
- New code for generating TDF files
- Oct 15, 2020 - Created the first end-to-end prototype
- Parse MIMIC files and generate a TDF file
- Build the runtime environment to create timelines from TDF files
- Build the Job file format and runtime to save/restore neural net state
- Train a neural net and save the trained matrices to MLJob file
- Generate predictions based on new user inputs
- Simple web server CGI, running on a VM on AWS