huihuid / coursera-ibm-ai-workflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solution for AI in Production (coursera.org)

1. Running the application

To start this application run the following command:

python app.py

and navigate to the following url: http://localhost:8080

NOTE: it might take a minute to respond the first time

2. Running tests

NOTE: Before running the unit tests, make sure the previous command is running

To run all the tests (summary style):

python run-tests.py

To run all the test (verbose style):

python run-tests.py -v

To run only the api tests

python unittests/ApiTests.py

To run only the model tests

python unittests/ModelTests.py

3. (Re)Training the model

A script is available to automate the ingestion of observations (and re-train all models):

python solution_guidance/model.py

it takes Random Forest Regression by default, however Extra Trees Regression is also available as an option when adding the following argument:

python solution_guidance/model.py extratrees

4. Visualizations

As part of the EDA investigation, these graphs were created:

alt text alt text alt text alt text alt text

5. References

Course link: learn/ibm-ai-workflow-ai-production


The following questions are being evaluated as part of the peer review submission:

  1. Are there unit tests for the API?
  2. Are there unit tests for the model?
  3. Are there unit tests for the logging?
  4. Can all of the unit tests be run with a single script and do all of the unit 1. tests pass?
  5. Is there a mechanism to monitor performance?
  6. Was there an attempt to isolate the read/write unit tests from production 1. models and logs?
  7. Does the API work as expected? For example, can you get predictions for a 1. specific country as well as for all countries combined?
  8. Does the data ingestion exists as a function or script to facilitate 1. automation?
  9. Were multiple models compared?
  10. Did the EDA investigation use visualizations?
  11. Is everything containerized within a working Docker image?
  12. Did they use a visualization to compare their model to the baseline model?

About

License:MIT License


Languages

Language:Python 74.1%Language:HTML 16.3%Language:JavaScript 7.9%Language:Dockerfile 1.7%