awslabs / awslabs/graphstorm

Clarify/make consistent expected prediction output shape for different loss functions

Open
#1,242 1 comment 0 reactions 1 assignee View on GitHub

@thvasilo is already working on this.

Since May 14, 2025.

0.4.2
Dominant language
Python
Stars
452
Forks
76
PR merge metrics
No merged PRs in 30d

Description

For classification tasks, cross entropy will have a prediction shape with number of columns that's equal to the number of classes. So for binary tasks we have 2 columns in the output, where col2 = 1-col1.

Focal loss instead will produce one column that is the positive score, which carries the same information while being more space-efficient.

We need to inform users and possibly enforce a consistent behavior for num_clases

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.