leonardofurnielis / sample-model-container

Sample of Credit Risk model created with Scikit Learn allowing inference API with Flask.

Repository from Github https://github.comleonardofurnielis/sample-model-containerRepository from Github https://github.comleonardofurnielis/sample-model-container

sample-model-container

Table of Contents

Native runtime

To run this code in your computer execute the following commands into project root directory

cd <directory to store your Python environment>
python -m venv <your-venv-name>

source <your-venv-name>/bin/activate

$ pip install --no-cache-dir -r requirements.txt

$ python main.py

Dectivate your Python virtual environment

If you need to change to a different environment, you can deactivate your current environment using the command below:

deactivate

Containerized

To run this code using Docker container execute the following commands into project root directory

$ docker build -t sample-model-container .
$ docker run -p 3000:3000 -d sample-model-container

About

Sample of Credit Risk model created with Scikit Learn allowing inference API with Flask.


Languages

Language:Jupyter Notebook 72.4%Language:Python 22.5%Language:Dockerfile 5.2%