Skip to content

Commit

Permalink
update README to new structure
Browse files Browse the repository at this point in the history
  • Loading branch information
sojiadeshina committed Jul 13, 2020
1 parent b39f4f2 commit 987c03e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 63 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,15 @@ In order to encapsulate the project as a stand-alone microservice, Amazon API Ga
* `deployment/`
* `fraud-detection-using-machine-learning.yaml`: Creates AWS CloudFormation Stack for solution
* `source/`
* `fraud-detection/`
* `lambda`
* `model-invocation/`
* `index.py`: Lambda function script for invoking SageMaker endpoints for inference
* `notebooks/`
* `generate_endpoint_traffic.py`: Custom script to show how to send transaction traffic to REST API for inference
* `src`
* `package`
* `config.py`: Read in the environment variables set by cloudformation stack creation
* `generate_endpoint_traffic.py`: Custom script to show how to send transaction traffic to REST API for inference
* `util.py`: Helper function and utilities
* `sagemaker_fraud_detection.ipynb`: Orchestrates the solution. Trains the models and deploys the trained model
* `setup/`
* `on-start.sh`: Bash script to setup sagemaker notebook environment with necessary dependencies
Expand Down
12 changes: 1 addition & 11 deletions deployment/fraud-detection-using-machine-learning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@ Metadata:
Mappings:
Function:
FraudDetection:
S3Key: fraud-detection-using-machine-learning/build/model_invocation.zip
Notebook:
FraudDetection:
S3Key: >-
/fraud-detection-using-machine-learning/notebooks/sagemaker_fraud_detection.ipynb
Script:
GenerateTraffic:
S3Key: >-
/fraud-detection-using-machine-learning/notebooks/generate_endpoint_traffic.py
KibanaDashboard:
S3Key: /fraud-detection-using-machine-learning/notebooks/dashboard.json
S3Key: Fraud-detection-using-machine-learning/build/model_invocation.zip
Resources:
ModelDataBucket:
Type: 'AWS::S3::Bucket'
Expand Down
48 changes: 0 additions & 48 deletions source/notebooks/generate_endpoint_traffic.py

This file was deleted.

3 changes: 2 additions & 1 deletion source/notebooks/sagemaker_fraud_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@
"import os\n",
"import sagemaker\n",
"from sagemaker import get_execution_role\n",
"from package import config\n",
"\n",
"session = sagemaker.Session()\n",
"bucket = \"fraud-detection-end-to-end-demo\"\n",
"bucket = config.MODEL_DATA_S3_BUCKET\n",
"prefix = 'fraud-classifier'"
]
},
Expand Down
1 change: 0 additions & 1 deletion source/notebooks/src/package/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
AWS_ACCOUNT_ID = os.environ['AWS_ACCOUNT_ID']
AWS_REGION = os.environ['AWS_REGION']
SAGEMAKER_IAM_ROLE = os.environ['SAGEMAKER_IAM_ROLE']
STACK_NAME = os.environ['STACK_NAME']
SOLUTIONS_S3_BUCKET = os.environ['SOLUTIONS_S3_BUCKET']

MODEL_DATA_S3_BUCKET = os.environ['MODEL_DATA_S3_BUCKET']
Expand Down

0 comments on commit 987c03e

Please sign in to comment.