Skip to content

Update main.py#8

Open
BernardOng wants to merge 1 commit into
laiguokun:masterfrom
BernardOng:patch-1
Open

Update main.py#8
BernardOng wants to merge 1 commit into
laiguokun:masterfrom
BernardOng:patch-1

Conversation

@BernardOng

Copy link
Copy Markdown

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
Copy Markdown

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