lucasmiranda42/deepof

View on GitHub

Showing 195 of 195 total issues

Function recluster has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

def recluster(
Severity: Major
Found in deepof/post_hoc.py - About 1 hr to fix

    Function align_deepof_kinematics_with_unsupervised_labels has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def align_deepof_kinematics_with_unsupervised_labels(
    Severity: Major
    Found in deepof/post_hoc.py - About 1 hr to fix

      Function export_annotated_video has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      def export_annotated_video(
      Severity: Major
      Found in deepof/visuals.py - About 1 hr to fix

        Function _filter_embeddings has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def _filter_embeddings(
        Severity: Major
        Found in deepof/visuals.py - About 1 hr to fix

          Function close_double_contact has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def close_double_contact(
          Severity: Major
          Found in deepof/annotation_utils.py - About 1 hr to fix

            Function automatically_recognize_arena has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            def automatically_recognize_arena(
            Severity: Major
            Found in deepof/utils.py - About 1 hr to fix

              Function select_contrastive_loss has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def select_contrastive_loss(
              Severity: Major
              Found in deepof/model_utils.py - About 1 hr to fix

                Function extend has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                Open

                    def extend(
                        self,
                        project_to_extend: coordinates,
                        video_path: str = None,
                        table_path: str = None,
                Severity: Minor
                Found in deepof/data.py - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function call has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    def call(self, inputs, training=False):  # pragma: no cover
                        """Compute the output of the layer."""
                        z_gauss_mean = self.z_gauss_mean(inputs)
                        z_gauss_var = self.z_gauss_var(inputs)
                
                
                Severity: Minor
                Found in deepof/models.py - About 1 hr to fix

                  Function __init__ has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      def __init__(
                          self,
                          input_shape: tuple,
                          edge_feature_shape: tuple,
                          adjacency_matrix: np.ndarray = None,
                  Severity: Minor
                  Found in deepof/models.py - About 1 hr to fix

                    Function plot_cluster_detection_performance has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def plot_cluster_detection_performance(
                    Severity: Major
                    Found in deepof/visuals.py - About 1 hr to fix

                      Function get_coords has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def get_coords(
                      Severity: Major
                      Found in deepof/data.py - About 1 hr to fix

                        Function output_unsupervised_annotated_video has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        def output_unsupervised_annotated_video(
                        Severity: Major
                        Found in deepof/visuals.py - About 1 hr to fix

                          Function supervised_annotation has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def supervised_annotation(
                          Severity: Major
                          Found in deepof/data.py - About 1 hr to fix

                            Function remove_outliers has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            def remove_outliers(
                            Severity: Major
                            Found in deepof/utils.py - About 1 hr to fix

                              Function embedding_per_video has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              def embedding_per_video(
                              Severity: Major
                              Found in deepof/model_utils.py - About 1 hr to fix

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

                                    def __init__(
                                Severity: Major
                                Found in deepof/hypermodels.py - About 1 hr to fix

                                  Function get_callbacks has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  def get_callbacks(
                                  Severity: Major
                                  Found in deepof/model_utils.py - About 1 hr to fix

                                    Function get_recurrent_encoder has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    def get_recurrent_encoder(
                                    Severity: Major
                                    Found in deepof/models.py - About 1 hr to fix

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

                                          def __init__(
                                      Severity: Major
                                      Found in deepof/models.py - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language