tensorflow/models

View on GitHub
official/recommendation/uplift/metrics/poisson_metrics_test.py

Summary

Maintainability
C
1 day
Test Coverage

File poisson_metrics_test.py has 409 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2024 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Minor
Found in official/recommendation/uplift/metrics/poisson_metrics_test.py - About 5 hrs to fix

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

      def test_metric_computes_correct_loss(
    Severity: Minor
    Found in official/recommendation/uplift/metrics/poisson_metrics_test.py - About 45 mins to fix

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

        def test_metric_computation_is_correct(
      Severity: Minor
      Found in official/recommendation/uplift/metrics/poisson_metrics_test.py - About 45 mins to fix

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

          def test_metric_computes_correct_loss(
        Severity: Minor
        Found in official/recommendation/uplift/metrics/poisson_metrics_test.py - About 35 mins to fix

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

            def test_metric_computes_correct_loss(
          Severity: Minor
          Found in official/recommendation/uplift/metrics/poisson_metrics_test.py - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status