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 cp class #390

Merged
merged 4 commits into from May 5, 2022
Merged

Conversation

caglayantuna
Copy link
Member

I realized that contrained parafac has no class in Tensorly. I know that classes are experimental for now but it could be useful for the future developments. This PR adds ConstrainedCP class to _constrained_cp file with related changes in init and test.

@codecov
Copy link

codecov bot commented Mar 16, 2022

Codecov Report

Merging #390 (205bfd4) into main (3dbd879) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #390      +/-   ##
==========================================
+ Coverage   88.29%   88.35%   +0.06%     
==========================================
  Files         107      107              
  Lines        6238     6271      +33     
==========================================
+ Hits         5508     5541      +33     
  Misses        730      730              
Impacted Files Coverage Δ
tensorly/decomposition/__init__.py 100.00% <100.00%> (ø)
tensorly/decomposition/_constrained_cp.py 79.25% <100.00%> (+6.44%) ⬆️
...ly/decomposition/tests/test_constrained_parafac.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@JeanKossaifi
Copy link
Member

Great, thanks @caglayantuna! Can you also add it to the doc (api) ?

@caglayantuna
Copy link
Member Author

Done.

@JeanKossaifi
Copy link
Member

Looks great, thank you @caglayantuna!

@JeanKossaifi JeanKossaifi merged commit 21aa92d into tensorly:main May 5, 2022
@caglayantuna caglayantuna deleted the Constrained_cp_Class branch May 5, 2022 07:37
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