Code Monkey home page Code Monkey logo

aws-fraud-detector-samples's Introduction

Amazon Fraud Detector Samples

Amazon Fraud Detector is a fully managed service that makes it easy to identify potentially fraudulent online activities such as online payment fraud and the creation of fake accounts. This repository contains a collection of example AWS solutions and Jupyter notebooks that interact with the Amazon Fraud Detector APIs. For more videos, blogs, and tutorials about Amazon Fraud Detector, refer to Amazon Fraud Detector resource.

Sample Notebooks

  • Fraud_Detector_End_to_End_External_Data_OFI.ipynb, provides an example of building a detector using Amazon Fraud Detector’s APIs for Online Fraud Inisights (OFI) model type using external data sets.

  • Fraud_Detector_End_to_End_Stored_Data.ipynb, provides an example of building a detector using Amazon Fraud Detector’s APIs for Transaction Fraud Inisights (TFI) or Online Fraud Inisights (OFI) model type using data stored in Amazon Fraud Detector.

  • Fraud_Detector_End_to_End_ATI.ipynb, provides an example of building a detector using Amazon Fraud Detector’s APIs for Account Takeover Inisights (ATI) model type using data stored in Amazon Fraud Detector. Sample dataset is available under data folder.

  • Fraud_Detector_Send_Event.ipynb, provides an example of calling Amazon Fraud Detector's SendEvent API.

  • Fraud_Detector_GetEventPrediction_API_example.ipynb, provides an example of calling Amazon Fraud Detector’s event prediction API.

  • Fraud_Detector_BatchPrediction_API_Example.ipynb, provides an example of working with Amazon Fraud Detector's batch prediction API.

  • AFD-Sagemaker-Model-Example.ipynb, provides an exmaple of training a sagemaker model, import to Amazon Fraud Detector and test.

Automated Data Profiler

The profiler generates an intuitive and comprehensive report of your dataset, including variable statistics, label distribution, categorical and numeric analysis, and even variable&label correlations. It provides guidance on variable types as well as an option to transform the dataset into the format in compliance with AFD. Refer to this blog post for more information.

To use it, follow steps below:

  1. Open the CloudFormation quick launch link.
  2. Fill in the parameters including: path to your CSV file in S3, some header names, and options.
  3. Click create stack.
  4. Wait a few minutes and open your S3 folder with your CSV file (e.g. myfile.csv). The profiling report is under folder /afd_data_myfile/report.html.

Sample Data Sets

  • data folder, provides sample data sets for OFI and TFI model types.
    • registration_data_20K_full.csv and registration_data_20K_minimum.csv, provide sample data sets for OFI.
    • transaction_data_100K_full.csv, provides sample data set for TFI.
    • ato_data_800K_full.csv.zip, provides sample data set for ATI. Download and unzip to get the CSV data.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

aws-fraud-detector-samples's People

Contributors

mikames avatar haozhouamzn avatar zhengli0817 avatar sheliaxin avatar qbaza avatar amazon-auto avatar

Watchers

James Cloos 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.