monarch-initiative/N2V

View on GitHub
embiggen/edge_prediction/edge_prediction_tensorflow/gcn.py

Summary

Maintainability
C
1 day
Test Coverage

File gcn.py has 398 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"""GCN model for edge prediction."""
from typing import List, Union, Optional, Dict, Any, Type

import numpy as np
from tensorflow.keras.optimizers import (
Severity: Minor
Found in embiggen/edge_prediction/edge_prediction_tensorflow/gcn.py - About 5 hrs to fix

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

        def __init__(
    Severity: Major
    Found in embiggen/edge_prediction/edge_prediction_tensorflow/gcn.py - About 5 hrs to fix

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

          def _predict_proba(
      Severity: Minor
      Found in embiggen/edge_prediction/edge_prediction_tensorflow/gcn.py - About 45 mins to fix

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

            def _get_model_training_input(
        Severity: Minor
        Found in embiggen/edge_prediction/edge_prediction_tensorflow/gcn.py - About 45 mins to fix

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

              def _get_model_prediction_input(
          Severity: Minor
          Found in embiggen/edge_prediction/edge_prediction_tensorflow/gcn.py - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status