-
Notifications
You must be signed in to change notification settings - Fork 21
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
[TO-REVIEW] Add multi-domain Monge alignment and JCPOT Target shift method #180
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #180 +/- ##
==========================================
+ Coverage 97.01% 97.02% +0.01%
==========================================
Files 54 54
Lines 5319 5419 +100
==========================================
+ Hits 5160 5258 +98
- Misses 159 161 +2 |
# %% Multisource and taregt data | ||
|
||
|
||
def get_multidomain_data( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go to toy datasets, right?
skada/_mapping.py
Outdated
------- | ||
X_t : array-like, shape (n_samples, n_components) | ||
The data transformed to the target subspace. | ||
y_t : array-like, shape (n_samples,) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only X_adapt
is returned.
|
||
check_consistent_length(arrays) | ||
|
||
domain_idx = extract_domains_indices(sample_domain, False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to make boolean into a (forced-)named argument (I guess not the part of this PR)
Adds a multi domain Monge alignement Adapter to SKADA that does the following
Also implement the multisource JCPOT taregt shift method (that should also work for only one source)
Remain to be done