Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix N shape bugs #157

Merged
merged 14 commits into from
Feb 22, 2022
Merged

Fix N shape bugs #157

merged 14 commits into from
Feb 22, 2022

Conversation

Linux-cpp-lisp
Copy link
Collaborator

No description provided.

N = N.unsqueeze(-1)
assert N.ndim == 2
assert N.shape == (len(arr), 1)
assert arr.ndim == 2
Copy link
Collaborator

Choose a reason for hiding this comment

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

why?

Copy link
Collaborator

Choose a reason for hiding this comment

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

should we make N the same shape as arr from the 2nd axis?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

what do you mean?

Comment on lines 544 to 546
data_dim = arr.shape[1]
arr = arr / N
assert arr.shape == (len(N), data_dim)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
data_dim = arr.shape[1]
arr = arr / N
assert arr.shape == (len(N), data_dim)
data_dim = arr.shape[1:]
arr = arr / N
assert arr.shape == (len(N), data_dim)

@nw13slx nw13slx marked this pull request as ready for review February 22, 2022 19:49
@nw13slx nw13slx merged commit c0dda76 into develop Feb 22, 2022
@Linux-cpp-lisp Linux-cpp-lisp deleted the N_shapeissue branch February 22, 2022 19:58
@nw13slx nw13slx linked an issue Feb 22, 2022 that may be closed by this pull request
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.

❓ [QUESTION] Training a model with xyz dataset
2 participants