Skip to content

Conversation

@MarieRoald
Copy link
Contributor

Currently, non_negative_parafac_hals and NN_PARAFAC_HALS do not support a random seed. If random initialisation is used, then the random state is set to None. This pull requests fixes that, and adds a random_state argument.

@codecov
Copy link

codecov bot commented Nov 26, 2021

Codecov Report

Merging #344 (31c196e) into main (c2fa4ec) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #344   +/-   ##
=======================================
  Coverage   88.19%   88.19%           
=======================================
  Files         103      103           
  Lines        5996     5997    +1     
=======================================
+ Hits         5288     5289    +1     
  Misses        708      708           
Impacted Files Coverage Δ
tensorly/decomposition/_nn_cp.py 85.89% <100.00%> (+0.06%) ⬆️
tensorly/decomposition/_cmtf_als.py 88.88% <0.00%> (-3.71%) ⬇️
tensorly/decomposition/_cp.py 87.95% <0.00%> (+0.36%) ⬆️

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 c2fa4ec...31c196e. Read the comment docs.

@JeanKossaifi
Copy link
Member

Thanks @MarieRoald, great to have this!
I fixed the merge conflict with the previous PR but there seems to be a repeated argument for one of the calls.

@JeanKossaifi
Copy link
Member

Thanks @MarieRoald, merging!

@JeanKossaifi JeanKossaifi merged commit 9bcb608 into tensorly:main Nov 30, 2021
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.

2 participants