pyod/models/devnet.py
File devnet.py
has 253 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# -*- coding: utf-8 -*-
"""Deep anomaly detection with deviation networks
Part of the codes are adapted from
https://github.com/GuansongPang/deviation-network
Function __init__
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def __init__(self,
Function train_and_test
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def train_and_test(model, train_loader, test_loader, epochs, device):
Function input_batch_generation_sup_sparse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def input_batch_generation_sup_sparse(x_train, outlier_indices, inlier_indices,