https://github.com/teo-sl/dplan_pytorch
This repository contains an implementation of an anomaly detection method called DPLAN, which is based on the reinforcement learning framework. The method is described in the paper "Toward Deep Supervised Anomaly Detection: Reinforcement Learning from Partially Labeled Anomaly Data" by Pang et al.
https://github.com/teo-sl/dplan_pytorch
anomaly-detection deep-learning machine-learning pytorch reinforcement-learning semi-supervised-learning unsw-nb15
Last synced: 4 months ago
JSON representation
This repository contains an implementation of an anomaly detection method called DPLAN, which is based on the reinforcement learning framework. The method is described in the paper "Toward Deep Supervised Anomaly Detection: Reinforcement Learning from Partially Labeled Anomaly Data" by Pang et al.
- Host: GitHub
- URL: https://github.com/teo-sl/dplan_pytorch
- Owner: teo-sl
- License: mit
- Created: 2023-08-07T13:26:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T11:28:36.000Z (over 2 years ago)
- Last Synced: 2025-04-14T02:13:43.762Z (about 1 year ago)
- Topics: anomaly-detection, deep-learning, machine-learning, pytorch, reinforcement-learning, semi-supervised-learning, unsw-nb15
- Language: Python
- Homepage:
- Size: 400 KB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# DPLAN
# A Pytorch implementation
## author: Teodoro Sullazzo
This repository contains an implementation of an anomaly detection method called DPLAN, which is based on the reinforcement learning framework. The method is described in the paper "Toward Deep Supervised Anomaly Detection: Reinforcement Learning from Partially Labeled Anomaly Data" by Pang et al. You can access the paper [here](https://arxiv.org/pdf/2009.06847.pdf).
There are some differences between the work presented here and the original work by Pang et al.:
- I introduced the set $D_n$, which contains known normal data.
- I utilized a different kind of normalization for the Isolation Forest score.
- I changed how the reward is computed for the extrinsic reward.
- This implementation is based on the Pytorch framework.
- There are also some other minor changes.
The code in env.py is derived from the code provided by the Github user lflfdxfn.
## UPDATE - 13/12/2023
Added preprocessing for UNSW-NB15 dataset according to Pang et al's paper. It can be find in the preprocessing folder.
## DRAN
The repository also includes a new method based on DPLAN called DRAN that removes the reinforcement learning component by using a regression layer. The method's workflow is described below.

