yzhao062/Pyod

View on GitHub
pyod/models/devnet.py

Summary

Maintainability
B
4 hrs
Test Coverage

File devnet.py has 253 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# -*- coding: utf-8 -*-

"""Deep anomaly detection with deviation networks
Part of the codes are adapted from
https://github.com/GuansongPang/deviation-network
Severity: Minor
Found in pyod/models/devnet.py - About 2 hrs to fix

    Function __init__ has 11 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def __init__(self,
    Severity: Major
    Found in pyod/models/devnet.py - About 1 hr to fix

      Function train_and_test has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def train_and_test(model, train_loader, test_loader, epochs, device):
      Severity: Minor
      Found in pyod/models/devnet.py - About 35 mins to fix

        Function input_batch_generation_sup_sparse has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def input_batch_generation_sup_sparse(x_train, outlier_indices, inlier_indices,
        Severity: Minor
        Found in pyod/models/devnet.py - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status