Git Product home page Git Product logo

fraud-detection-using-machine-learning's Issues

The timestamp part in the job name after training is different from what rcf.deploy is looking for

I am just trying to run the fraud-detection using machine learning stack and I am encountering this error

UnexpectedStatusException: Error hosting endpoint sagemaker-soln-fd1-rcf: Failed. Reason: Failed to download model data for container "container_1" from URL: "s3://cloud-bucket-test/fraud-classifier/output/sagemaker-soln-fd1-rcf-2021-03-26-18-36-26-322/output/model.tar.gz". Please ensure that there is an object located at the URL and that the role passed to CreateModel has permissions to download the object..

My S3 path where the model.tar.gz is present is given below, my local time is PST

s3://cloud-bucket-test/fraud-classifier/output/sagemaker-soln-fd1-rcf-2021-03-27-00-48-29-687/output/model.tar.gz.

How to change the training container time? Please help

AttributeError when trying to set model attributes

Hello!

I'm trying to run through the "sagemaker_fraud_detection" notebook and I'm running into an issue when trying to set the 'content_type' and 'accept' attributes for the different predictors (Random Cut Forest, SMOTE).

Specifically, the commands with the issue:

rcf_predictor.content_type = 'text/csv'
rcf_predictor.serializer = csv_serializer
rcf_predictor.accept = 'application/json'
rcf_predictor.deserializer = json_deserializer

smote_predictor.content_type = 'text/csv'
smote_predictor.serializer = csv_serializer
smote_predictor.deserializer = None

Here is the error that I'm seeing:


AttributeError Traceback (most recent call last)
in
4
5 # Specify input and output formats.
----> 6 smote_predictor.content_type = 'text/csv'
7 smote_predictor.serializer = csv_serializer
8 smote_predictor.deserializer = None

AttributeError: can't set attribute

This issue seems to resolve itself with the random cut forest model but not with the SMOTE model.

Thanks in advance for any insights into this issue, and my apologies if I'm not doing something correctly.

Thanks!

image

Metric for evaluation and other issues

I found the following issues when running this notebook:

  1. Metric for evaluation: after running this notebook, I found that the recall was only about 73%, which for a fraud detection use case should be targeted at a higher level such as 90%.

    Suggested resolution: follow the example at https://github.com/awslabs/amazon-sagemaker-examples/blob/master/scientific_details_of_algorithms/linear_learner_class_weights_loss_functions/linear_learner_class_weights_loss_functions.ipynb, including:

    Set 'binary_classifier_model_selection_criteria': 'precision_at_target_recall'
    Split the dataset into validation and test along with train.
    Use class weights etc.
    
  2. The data upload cell cannot be run as written. Instead, use the default session bucket or allow the user to provide their own:

      bucket = session.default_bucket()
      prefix = 'fraud-detection-end-to-end-demo/linear-learner'
    

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.