Skip to content

AssertionError in test_focal_loss #7533

Closed

Description

@KumoLiu
FAIL: test_consistency_with_cross_entropy_2d_no_reduction (tests.test_focal_loss.TestFocalLoss)
For gamma=0 the focal loss reduces to the cross entropy loss
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/MONAI/tests/test_focal_loss.py", line 135, in test_consistency_with_cross_entropy_2d_no_reduction
    assert np.allclose(max_error, 0)
AssertionError

Activity

  1. KumoLiu commented on Mar 12, 2024

    @KumoLiu
    ContributorAuthor
  2. added a commit that references this issue on Mar 12, 2024
    a9a2d3a
  3. added a commit that references this issue on Mar 18, 2024
    ec63e06
  4. added a commit that references this issue on Mar 25, 2024
    5465ae3
  5. added a commit that references this issue on Apr 11, 2024
    48a7ccd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions