Skip to content

Conversation

@andersonw1
Copy link
Collaborator

A small change for the preallocation of SINDy coefficients coefs when using torch. As defined, torch.Tensor([n_train, self.ncoefs]) returns a tensor with two entries which are n_train and self.ncoefs. This small change makes it so that we define a tensor of size n_train by self.ncoefs

Copy link
Collaborator

@dreamer2368 dreamer2368 left a comment

Choose a reason for hiding this comment

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

Thanks for this PR. This bug has been in my mind.

@dreamer2368 dreamer2368 merged commit edcd47c into main Dec 21, 2024
1 check passed
@dreamer2368 dreamer2368 deleted the tensor_change branch December 21, 2024 16:57
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.

3 participants