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

Rank1 support #48

Merged
merged 36 commits into from
Dec 20, 2021
Merged

Rank1 support #48

merged 36 commits into from
Dec 20, 2021

Conversation

rprimet
Copy link
Collaborator

@rprimet rprimet commented Nov 4, 2021

Very rough draft of part 1 of the implementation of #46 for discussion / comments.

@codecov
Copy link

codecov bot commented Nov 4, 2021

Codecov Report

Merging #48 (bb23361) into main (ad30e87) will increase coverage by 1.29%.
The diff coverage is 97.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
+ Coverage   74.50%   75.80%   +1.29%     
==========================================
  Files          43       43              
  Lines        2593     2748     +155     
==========================================
+ Hits         1932     2083     +151     
- Misses        661      665       +4     
Flag Coverage Δ
unittests 75.80% <97.46%> (+1.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
dicodile/update_z/distributed_sparse_encoder.py 74.25% <71.42%> (-2.34%) ⬇️
dicodile/update_z/coordinate_descent.py 41.17% <80.00%> (-0.63%) ⬇️
dicodile/update_z/dicod.py 78.68% <100.00%> (+0.84%) ⬆️
.../update_z/tests/test_distributed_sparse_encoder.py 100.00% <100.00%> (ø)
dicodile/utils/csc.py 100.00% <100.00%> (ø)
dicodile/utils/dictionary.py 51.45% <100.00%> (+19.02%) ⬆️
dicodile/utils/tests/test_csc.py 100.00% <100.00%> (ø)
dicodile/workers/dicod_worker.py 94.14% <100.00%> (+0.06%) ⬆️

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 ad30e87...bb23361. Read the comment docs.

Copy link
Owner

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

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

a few comments but it seems to be going in the right direction.

I would say for a first draft, lets aim to only use get_D in the worker?

dicodile/update_z/dicod.py Outdated Show resolved Hide resolved
dicodile/update_z/tests/test_distributed_sparse_encoder.py Outdated Show resolved Hide resolved
dicodile/update_z/distributed_sparse_encoder.py Outdated Show resolved Hide resolved
dicodile/update_z/distributed_sparse_encoder.py Outdated Show resolved Hide resolved
Copy link
Owner

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

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

some comments

dicodile/utils/tests/test_csc.py Show resolved Hide resolved
dicodile/workers/dicod_worker.py Outdated Show resolved Hide resolved
Copy link
Owner

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

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

Seems right for the compute_DtD!! Nice! 👍

dicodile/utils/csc.py Outdated Show resolved Hide resolved
dicodile/utils/dictionary.py Outdated Show resolved Hide resolved
rprimet and others added 2 commits November 24, 2021 11:37
Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com>
@rprimet rprimet marked this pull request as ready for review November 24, 2021 14:46
Copy link
Owner

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

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

Ok I think we are nearly there!
A few extra comments.

dicodile/_dicodile.py Outdated Show resolved Hide resolved
dicodile/update_z/distributed_sparse_encoder.py Outdated Show resolved Hide resolved
dicodile/update_z/tests/test_distributed_sparse_encoder.py Outdated Show resolved Hide resolved
dicodile/utils/csc.py Show resolved Hide resolved
dicodile/utils/dictionary.py Show resolved Hide resolved
dicodile/utils/tests/test_csc.py Outdated Show resolved Hide resolved
dicodile/workers/dicod_worker.py Outdated Show resolved Hide resolved
dicodile/workers/dicod_worker.py Outdated Show resolved Hide resolved
Copy link
Owner

@tomMoral tomMoral left a comment

Choose a reason for hiding this comment

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

A small comments on why the test is breaking.

dicodile/utils/csc.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

@tomMoral merge if happy

@tomMoral
Copy link
Owner

The example is nice and working! LGTM! thanks @rprimet

@tomMoral tomMoral merged commit 2588788 into tomMoral:main Dec 20, 2021
@agramfort
Copy link
Collaborator

🙏 @rprimet !

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

3 participants