Spaces:
Runtime error
Runtime error
imalexianne
commited on
Commit
·
fcd66fa
1
Parent(s):
30e99fe
add readme file
Browse files
READme.md
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Machine-learning model Dockerized FastAPI Sepsis Prediction
|
2 |
+
|
3 |
+
## Description
|
4 |
+
|
5 |
+
Welcome to the Sepsis Prediction FastAPI application!
|
6 |
+
|
7 |
+
This application allows you to predict sepsis in patients using a machine-learning model.
|
8 |
+
|
9 |
+
|
10 |
+
|
11 |
+
## Introduction
|
12 |
+
|
13 |
+
In this project, we'll develop a FastAPI web application that predicts whether a patient has sepsis based on various medical attributes.
|
14 |
+
|
15 |
+
## Setup
|
16 |
+
Install the required packages to be able to run the evaluation locally.
|
17 |
+
|
18 |
+
You need to have [`Python 3`](https://www.python.org/) on your system (**a Python version lower than 3.10**). Then you can clone this repo and being at the repo's `root :: repository_name> ...` follow the steps below:
|
19 |
+
|
20 |
+
|
21 |
+
- Windows *(Python should be added to the Path variable of environment)*:
|
22 |
+
|
23 |
+
python3 -m venv venv; venv\Scripts\activate; python -m pip install --upgrade pip; python -m pip install -r requirements.txt
|
24 |
+
|
25 |
+
- Linux & MacOs:
|
26 |
+
|
27 |
+
python3 -m venv venv; source venv/bin/activate; python -m pip install --upgrade pip; python -m pip install -r requirements.txt
|
28 |
+
|
29 |
+
The both long command-lines have a same structure, they pipe multiple commands using the symbol **;** but you may manually execute them one after another.
|
30 |
+
|
31 |
+
1. **Create the Python's virtual environment** that isolates the required libraries of the project to avoid conflicts;
|
32 |
+
2. **Activate the Python's virtual environment** so that the Python kernel & libraries will be those of the isolated environment;
|
33 |
+
3. **Upgrade Pip, the installed libraries/packages manager** to have the up-to-date version that will work correctly;
|
34 |
+
4. **Install the required libraries/packages** listed in the `requirements.txt` file so that it will be allow to import them into the python's scripts and notebooks without any issue.
|
35 |
+
|
36 |
+
|
37 |
+
#### Getting Started
|
38 |
+
|
39 |
+
To run this application, follow these steps:
|
40 |
+
|
41 |
+
- Clone the Repository: Clone this repository to your local machine.
|
42 |
+
|
43 |
+
- Navigate to the Directory: Open a terminal and navigate to the cloned repository directory.
|
44 |
+
|
45 |
+
- Install Docker: Ensure that you have Docker installed on your machine.
|
46 |
+
|
47 |
+
- Build the Docker Image
|
48 |
+
- Run the dockeer image using the following command:
|
49 |
+
|
50 |
+
*docker build -t ml-sepsis-prediction-app .*
|
51 |
+
|
52 |
+
Run the Docker Container: Once the image is built, run the Docker container using the following command:
|
53 |
+
*docker run -p 8000:8000 ml-sepsis-prediction-app*
|
54 |
+
|
55 |
+
## Summary
|
56 |
+
|
57 |
+
| Project's Name | Published Article | Deployed App |Docker Hub Repository|
|
58 |
+
|:--------------:|:--------------:|:--------------:|:--------------:|
|
59 |
+
| Sepsis Prediction Using Fastapi|[Project Article](https://www.linkedin.com/pulse/classification-machine-learning-fastapi-sepsis-imanirakarama-4ivkf/) | [Deployed App]()| [Docker Hub](https://hub.docker.com/repository/docker/imalexianne/machine_learning_sepsis_predicion_fastapi/general)
|
60 |
+
|
61 |
+
## Author
|
62 |
+
|
63 |
+
Alexianne Imanirakarama
|
64 |
+
|
65 |
+
email:<[email protected]>
|
66 |
+
|
67 |
+
My LinkedIn:<https://www.linkedin.com/in/imalexianne>
|
68 |
+
|