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

Constrained parafac example and improved docstrings #347

Merged
merged 1 commit into from Dec 13, 2021

Conversation

caglayantuna
Copy link
Member

This PR adds plot_guide_for_constrained_cp file to the examples in order to explain how to use constrained parafac decomposition feature. Besides, we improve the docstring of constraints as we discussed before. We also realized a missing tl.abs in normalize constraint and fix it.

improve example and api docs

improve the example

imrove example

fix

improve texts
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #347 (b93fba7) into main (82601b4) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #347      +/-   ##
==========================================
- Coverage   88.25%   88.20%   -0.05%     
==========================================
  Files         103      103              
  Lines        6021     6021              
==========================================
- Hits         5314     5311       -3     
- Misses        707      710       +3     
Impacted Files Coverage Δ
tensorly/decomposition/_constrained_cp.py 72.81% <ø> (ø)
tensorly/tenalg/proximal.py 67.14% <100.00%> (-0.24%) ⬇️
tensorly/decomposition/_cmtf_als.py 88.88% <0.00%> (-3.71%) ⬇️
tensorly/decomposition/_cp.py 87.59% <0.00%> (-0.37%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82601b4...b93fba7. Read the comment docs.

@JeanKossaifi
Copy link
Member

Looks great, thanks @caglayantuna and @cohenjer!

@JeanKossaifi JeanKossaifi merged commit cdce431 into tensorly:main Dec 13, 2021
@caglayantuna caglayantuna deleted the constrained_cp_gallery branch December 14, 2021 07:55
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.

None yet

2 participants