← Projects

Credit Card Fraud Detection

MLRandomForestcollege projectGitHub ↗

Architecture

        +---------------------+
        |   train.ipynb       |
        |  (model training)   |
        +----------+----------+
                   |
                   | pickle
                   v
        +---------------------+
        |     model.pkl       |
        +----------+----------+
                   |
                   | load on startup
                   v
   +-----------------------------------+
   |          server.py (Flask)        |
   |                                   |
   |   GET  /          -> dashboard    |
   |   POST /predict   -> calc(data)   |
   +------+---------------------+------+
          ^                     |
          | HTTP (JSON)         | predict_proba / predict
          |                     v
   +------+-------+      +----------------+
   | index.html   |      | OrdinalEncoder |
   | (browser UI) |      |       ->       |
   |  - form      |      |  RandomForest  |
   |  - result    |      +----------------+
   +--------------+

Tech Stack

LayerTechnology
LanguagePython 3
ML / Modelscikit-learn (Random Forest)
Datapandas, NumPy
Encodingscikit-learn OrdinalEncoder
BackendFlask, Flask-CORS
Serializationpickle
FrontendHTML, CSS, vanilla JavaScript
NotebookJupyter