Giter Club home page Giter Club logo

ml-dynamic-risk-assessment's Introduction

Machine Learning Model Risk Assessment

Project starter kit

ML DevOps project: Create, deploy, and monitor a risk assessment machine learning model that will estimate the attrition risk of each of the company's 10,000 clients. If the model you create and deploy is accurate, it will enable the client managers to contact the clients with the highest risk and avoid losing clients and revenue.

Data has been downloaded from the Udacity 60412fe6 project starter kit.

Environment

  • Create your conda environment:
    $ conda create --name <your environment name> --file requirements.txt
    $ conda env create --file conda.yaml
    
    $ conda activate <your environment name>
    

NOTE: If you received the following error message: "Failed to build numpy Pillow scikit-learn scipy" execute the following:

$ conda install scikit-learn pillow

Install Jupiter notebook:

$ conda install jupyter

The Jupyter notebook "ModelScoring_Data.ipynb" will give you a good overview of the starter data.

Project files and purpose:

You can run each project file as follows:

# Ingest data
python ingestion.py
# Train model
python training.py
# Deploy model
python deployment.py
# Score model
python scoring.py
# Report
python reporting.py
# Run diagnostics
python diagnostics.py

You can run each file on its own. Alternatively, run the full process as follows:

NOTE: Remember to first start the API on the local server - on another console - as mentioned below.

python full_process.py

The full_process will also check the ingested data and re-train the model if necessary.

Logs and metrics

The file "practicemodels/apireturns.txt" contains the metrics of the model with the ingested trainings data, while the file "models/apireturns.txt" the metrics of the model with the new ingested data.

The file "logs/churn.log" collects general data during the process.

Local server

If we want to start the diagnosing API, execute the following:

# Console 1: Start the API on the web server: http://localhost:8000
python app.py
# Console 2: Perform API access calls
python api_calls.py

ml-dynamic-risk-assessment's People

Contributors

mikethwolff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.