Skip to content
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fraud-model-api/src/main/scala/org/wisconsinbigdata2018/demo/fraudmodel/api
fraud-model-impl/src
project
sbt-dist/conf
.gitignore
.sbtopts
Export Model.dbc
LICENSE
README.md
build.sbt
sbt
sbt.bat

README.md

Demo Materials

Model creation/export (via Databricks notebook)

You can create a free Community Edition account with Databricks, and then follow the instructions to import the Export Model.dbc notebook into your environment.

Local microservice (via Lagom)

After executing the Databricks notebook (and downloading your model JAR), then update the local path to the model file within the FraudmodelServiceImpl class. Alternatively, you can find a local copy of the model JAR in the resources folder.

Once you've done this, then build and run the project using the SBT command below.

./sbt runAll

Service endpoints

After running the local microservice, you can reach the endpoints below.

Model metadata

GET
http://localhost:9000/api/fraud

Analyze record

POST
http://localhost:9000/api/fraud/analyze

Content-Type
application/json

Body
{"RegisteredDevice":1,"Flow":"hacker-portal","Action":"BALANCE_INQUIRY","Amount":0}

You can’t perform that action at this time.