Skip to content

APLoss RuntimeError #58

Description

@s-rog
  File "~/micromamba/envs/jpt/lib/python3.10/site-packages/libauc/losses/auc.py", line 313, in forward
    assert sum(pos_mask) > 0, "Input data has no positive sample! Please use 'libauc.sampler.DualSampler' for data resampling!"
RuntimeError: Boolean value of Tensor with more than one value is ambiguous

I'm trying to use this for a binary problem but have not been able to get it to work (torch 2.3).
I looked into a code but couldn't find any glaring errors as sum(Tensor) should reduce pos_mask down to a single element...

Edit: Some of my input shapes were wrong

Activity

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