Skip to content
Discussion options

You must be logged in to vote

I think it is best to normalize each target separately, e.g., via

mean, std = dataset.data.y.mean(dim=0, keepdim=True), dataset.data.y.std(dim=0, keepdim=True)

for batch in dataset:
    batch.y = (batch.y - mean) / std

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mtzortzi
Comment options

@rusty1s
Comment options

@mtzortzi
Comment options

@Shiiivaa
Comment options

Answer selected by mtzortzi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants