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

fixing issue 1780 #1790

Closed
wants to merge 2 commits into from
Closed

fixing issue 1780 #1790

wants to merge 2 commits into from

Conversation

Lihanyiyi
Copy link

@Lihanyiyi Lihanyiyi commented May 21, 2024

Description

Motivation and Context

How Has This Been Tested?

  • Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:
  2. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

@github-actions github-actions bot added the waiting for triage Cannot auto-triage, wait for triage. label May 21, 2024
@@ -148,7 +148,7 @@ def loss_fn(self, pred, label):
def metric_fn(self, pred, label):
mask = torch.isfinite(label)

if self.metric in ("", "loss"):
if self.metric in ("", "loss","mse"):
return -self.loss_fn(pred[mask], label[mask])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use mse instead of loss_fn to support extending more losses in the future.

@Lihanyiyi
Copy link
Author

Lihanyiyi commented May 21, 2024 via email

@Lihanyiyi Lihanyiyi closed this by deleting the head repository Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for triage Cannot auto-triage, wait for triage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants