Skip to content

gonezc/wmad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WMAD: Weakly-supervised Multi-view Anomaly Detection

Python 3.7+ License: MIT

WMAD is a deep learning framework for multi-view anomaly detection in weakly-supervised scenarios with limited labeled samples.

Installation

git clone https://github.com/GoneZC/WMAD.git
cd WMAD
pip install -r requirements.txt

Quick Start

from wmad.models import WMAD
from wmad.data_utils import inject_unlabeled_labels

# Prepare multi-view data
X1_train, X2_train, X3_train = ...  # Three views
y_train = ...  # Labels: 1=anomaly, 0=normal, np.nan=unlabeled

# Train model
model = WMAD(epochs=30, batch_size=64, lr=1e-4, lambda_=0.1, eta1=0.1, eta2=0.1)
model.fit(X1_train, X2_train, X3_train, y_train, X1_val, X2_val, X3_val, y_val)

# Predict
scores = model.decision_function(X1_test, X2_test, X3_test)

See example.py for a complete working example with synthetic data and baseline comparisons.

Acknowledgments

This project is built upon the DeepOD library.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

weakly supervised multi-view anomaly detection framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages