Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't Calculate Loss in Prediction #363

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

donglihe-hub
Copy link
Contributor

@donglihe-hub donglihe-hub commented Mar 7, 2024

What does this PR do?

The original prediction function uses shared_step which calculates losses, though it later discards the loss. This procedure introduces complexity to algorithms using reduced label space. With the current prediction function, test labels has to be mapped to the reduced space before doing prediction, which is unnecessary and could be avoided.

Test CLI & API (bash tests/autotest.sh)

Test APIs used by main.py.

  • Test Pass
    • (Copy and paste the last outputted line here.)
  • Not Applicable (i.e., the PR does not include API changes.)

Check API Document

If any new APIs are added, please check if the description of the APIs is added to API document.

  • API document is updated (linear, nn)
  • Not Applicable (i.e., the PR does not include API changes.)

Test quickstart & API (bash tests/docs/test_changed_document.sh)

If any APIs in quickstarts or tutorials are modified, please run this test to check if the current examples can run correctly after the modified APIs are released.

@Eleven1Liu Eleven1Liu merged commit 2c41ee1 into ASUS-AICS:master Mar 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants