monarch-initiative/N2V

View on GitHub
embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py

Summary

Maintainability
C
1 day
Test Coverage

File perceptron.py has 355 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""Module providing Perceptron for edge prediction."""
import json
from typing import Any, Dict, List, Optional, Union

import compress_json
Severity: Minor
Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 4 hrs to fix

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

        def __init__(
    Severity: Major
    Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 1 hr to fix

      Function _predict has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _predict(
      Severity: Major
      Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 50 mins to fix

        Function _predict_proba has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def _predict_proba(
        Severity: Major
        Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 50 mins to fix

          Function _fit has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def _fit(
          Severity: Minor
          Found in embiggen/edge_prediction/edge_prediction_ensmallen/perceptron.py - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status