Code Monkey home page Code Monkey logo

credit-risk-anomaly-detection's Introduction

Credit Card Anomaly Detection

Objective

Experiment with various binary classification models below and select the most appropriate based on Area Under the ROC Curve together with Principal Component Analysis (PCA) in Apache Spark.

  • Logistic Regression
  • RandomForest Classification
  • Linear Support Vector Classification
  • Gradient Boosted Tree Classification
  • Naive Bayes Classification

Installation

The following package to be installed:

pyspark                   2.4.5                      py_0 

Dataset

Statlog (German Credit Data) Data Set

Reference

Machine Learning with PySpark (ISBN 978-1-4842-4130-1)

credit-risk-anomaly-detection's People

Contributors

tezzytezzy avatar

Watchers

 avatar

credit-risk-anomaly-detection's Issues

Add Multiclass One-Vs-Rest Classifier

Ideally One-Vs-Rest classifier to be added to an arsenal of binary classifications.

Using the already used base logistic Regression model as input as below,

OVR = OneVsRest(classifier=LR)
OVR_paramGrid = (ParamGridBuilder().build())
classification_model_and_paramgrid_list.append([OVR, OVR_paramGrid])

the line cvModel = cv.fit(df_train) throws the following exception.

IllegalArgumentException: 'Field "rawPrediction" does not exist.\nAvailable fields: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 1_INDEX, 1_VEC, 3_INDEX, 3_VEC, 4_INDEX, 4_VEC, 6_INDEX, 6_VEC, 7_INDEX, 7_VEC, 9_INDEX, 9_VEC, 10_INDEX, 10_VEC, 12_INDEX, 12_VEC, 14_INDEX, 14_VEC, 15_INDEX, 15_VEC, 17_INDEX, 17_VEC, 19_INDEX, 19_VEC, 20_INDEX, 20_VEC, label, features, std_features, pca_features, CrossValidator_01aa8f348031_rand, prediction'

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.