Skip to content

Commit

Permalink
'update4isort'
Browse files Browse the repository at this point in the history
  • Loading branch information
superarthurlx committed Jan 24, 2025
1 parent 5202814 commit 398bbc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions basicts/metrics/corr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import numpy as np
import torch


def masked_corr(prediction: torch.Tensor, target: torch.Tensor, null_val: float = np.nan) -> torch.Tensor:
"""
Calculate the Masked Pearson Correlation Coefficient between the predicted and target values,
Expand Down

0 comments on commit 398bbc4

Please sign in to comment.