├── .gitignore
├── LICENSE
├── README.md
├── data
└── creditcardfraud.zip
├── fraud_detection.ipynb
├── logs
├── events.out.tfevents.1497173435.poincare
├── events.out.tfevents.1497174259.poincare
├── events.out.tfevents.1497174328.poincare
├── events.out.tfevents.1497175610.poincare
├── events.out.tfevents.1497175679.poincare
├── events.out.tfevents.1497176316.poincare
└── events.out.tfevents.1497193550.poincare
└── model.h5
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | *$py.class
5 |
6 | # Distribution / packaging
7 | .Python
8 | env/
9 | build/
10 | develop-eggs/
11 | dist/
12 | downloads/
13 | eggs/
14 | .eggs/
15 | lib/
16 | lib64/
17 | parts/
18 | sdist/
19 | var/
20 | wheels/
21 | *.egg-info/
22 | .installed.cfg
23 | *.egg
24 |
25 | # PyInstaller
26 | # Usually these files are written by a python script from a template
27 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
28 | *.manifest
29 | *.spec
30 |
31 | # Installer logs
32 | pip-log.txt
33 | pip-delete-this-directory.txt
34 |
35 | # Unit test / coverage reports
36 | htmlcov/
37 | .tox/
38 | .coverage
39 | .coverage.*
40 | .cache
41 | nosetests.xml
42 | coverage.xml
43 | *,cover
44 | .hypothesis/
45 |
46 | # Translations
47 | *.mo
48 | *.pot
49 |
50 | # Django stuff:
51 | *.log
52 | local_settings.py
53 |
54 | # Flask stuff:
55 | instance/
56 | .webassets-cache
57 |
58 | # Scrapy stuff:
59 | .scrapy
60 |
61 | # Sphinx documentation
62 | docs/_build/
63 |
64 | # PyBuilder
65 | target/
66 |
67 | # Jupyter Notebook
68 | .ipynb_checkpoints
69 |
70 | # pyenv
71 | .python-version
72 |
73 | # celery beat schedule file
74 | celerybeat-schedule
75 |
76 | # SageMath parsed files
77 | *.sage.py
78 |
79 | # dotenv
80 | .env
81 |
82 | # virtualenv
83 | .venv
84 | venv/
85 | ENV/
86 |
87 | # Spyder project settings
88 | .spyderproject
89 |
90 | # Rope project settings
91 | .ropeproject
92 |
93 | # mkdocs documentation
94 | /site
95 |
96 | *.DS_Store
97 |
98 | data/creditcard.csv
99 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Venelin Valkov
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Credit Card Fraud Detection using Autoencoders in Keras
2 |
3 | Full explanation can be found in [this blog post](https://www.curiousily.com/posts/credit-card-fraud-detection-using-autoencoders-in-keras/). The source code is compatible with TensorFlow 1.1 and Keras 2.0.4
4 |
5 | ### Hands-On Machine Learning from Scratch
6 |
7 | Interested in deeper understanding of Machine Learning algorithms? Implement them in Python from scratch:
8 |
9 |
10 |
11 |
12 |
13 | Read the book here
14 |
--------------------------------------------------------------------------------
/data/creditcardfraud.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/data/creditcardfraud.zip
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497173435.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497173435.poincare
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497174259.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497174259.poincare
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497174328.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497174328.poincare
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497175610.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497175610.poincare
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497175679.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497175679.poincare
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497176316.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497176316.poincare
--------------------------------------------------------------------------------
/logs/events.out.tfevents.1497193550.poincare:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/logs/events.out.tfevents.1497193550.poincare
--------------------------------------------------------------------------------
/model.h5:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/curiousily/Credit-Card-Fraud-Detection-using-Autoencoders-in-Keras/5315cfd086ef7ee14aa84525085b2996cbc9951e/model.h5
--------------------------------------------------------------------------------