Skip to content

Objectosphere is computed on the softmax prediction, but not on the embedding layer #4

Description

@siebenkopf

When I understand the loss function:

pred=K.sqrt(K.sum(K.square(y_pred),axis=1))

correctly, the input to your loss function are the one-hot-encoded target values (y_true) and the estimated softmax probabilities (y_pred). From this y_pred, you compute the magnitude pred for each sample. However, this magnitude should be computed from the output of the layer before the logits, not from the softmax probabilities.

This might be the reason, why there is very little difference between the Entropic Open-Set loss and the Objectosphere loss.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions