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

Sptensor mask #259

Merged
merged 2 commits into from
Sep 25, 2023
Merged

Sptensor mask #259

merged 2 commits into from
Sep 25, 2023

Conversation

ntjohnson1
Copy link
Collaborator

@ntjohnson1 ntjohnson1 commented Sep 25, 2023

We were using tt_ismember_rows incorrectly in mask. -1 was a flag for failed match but also yields a valid index into an array. First fixed the bug then updated the ismember_rows interface to try to make this incorrect usage more obvious in the future.

Resolves #258


📚 Documentation preview 📚: https://pyttb--259.org.readthedocs.build/en/259/

Copy link
Collaborator

@dmdunla dmdunla left a comment

Choose a reason for hiding this comment

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

Good catch!

@dmdunla dmdunla merged commit 6a6f0b7 into sandialabs:main Sep 25, 2023
8 checks passed
jeremy-myers pushed a commit to jeremy-myers/pyttb that referenced this pull request Sep 26, 2023
* SPTENSOR: Fix Mask, using tt_ismember_rows incorrectly

* PYTTB_UTILS: Design away error:
* Make it more obvious member rows might not match
@ntjohnson1 ntjohnson1 deleted the sptensor_mask branch September 27, 2023 19:42
dmdunla added a commit that referenced this pull request Sep 27, 2023
* Draft tutorial

* Created ttensor/reconstruct tutorial in master.

* Moved to proper location.

* Suppress output

* Formatting.

* Draft of GCP_OPT tutorial. Requires resolving issue #252.

* Potential fix for ValueError in optimizers.

* autoformat

* Removed from main until completed in branch 248-tutorial-partial-reconstruction-of-a-tucker-tensor.

* Restored from upstream main.

* Auto formatting.

* Commenting out cells that use matplotlib.

* Draft tutorial

* Moved to proper location.

* Suppress output

* Formatting.

* Draft of GCP_OPT tutorial. Requires resolving issue #252.

* Auto formatting.

* Commenting out cells that use matplotlib.

* Sptensor mask (#259)

* SPTENSOR: Fix Mask, using tt_ismember_rows incorrectly

* PYTTB_UTILS: Design away error:
* Make it more obvious member rows might not match

* LaTeX

* Decrease the number of maximum iterations for notebook examples to try and avoid time out issues.

* Closes #230

---------

Co-authored-by: Jeremy Myers <[email protected]>
Co-authored-by: Danny Dunlavy <[email protected]>
Co-authored-by: Nick <[email protected]>
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.

sptensor.mask not working as intended
2 participants