Skip to content

Conversation

@BernardOng
Copy link

For lines 32 and 34, Edited to address deprecation warning to replace tensor.data[0] with tensor.item()

For line 45, edited to add a very small epsilon value to ensure divisor is not 0 or NaN.
This eliminates true_divide issue.

For lines 32 and 34, Edited to address deprecation warning to replace tensor.data[0] with tensor.item()

For line 45, edited to add a very small epsilon value to ensure divisor is not 0 or NaN. 
This eliminates true_divide issue.
@RiekeZoe
Copy link

Thanks, your pull request really helped me with the division issue for correlation!

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