[MRG] Handle torch tensor in DomainAwareDataset#337
Merged
tgnassou merged 9 commits intoscikit-adaptation:mainfrom Sep 23, 2025
Merged
[MRG] Handle torch tensor in DomainAwareDataset#337tgnassou merged 9 commits intoscikit-adaptation:mainfrom
tgnassou merged 9 commits intoscikit-adaptation:mainfrom
Conversation
…n pack and try/catch for torch import
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #337 +/- ##
==========================================
+ Coverage 96.18% 96.50% +0.32%
==========================================
Files 63 51 -12
Lines 7020 6068 -952
==========================================
- Hits 6752 5856 -896
+ Misses 268 212 -56 🚀 New features to boost your workflow:
|
Contributor
Author
|
I noticed that the behavior of |
tgnassou
approved these changes
Jul 2, 2025
Collaborator
|
LGTM! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding support for flexible data types (
numpyarrays andtorchtensors) and a new return type (DeepDADataset) insideDomainAwareDataset.Enhanced
packMethod Functionality:packmethod to handle data concatenation and return the appropriate format based on thereturn_type. Added checks fortorchavailability and raised appropriate errors if required dependencies are missing.DeepDADatasetobject, which is compatible with PyTorch'sDatasetinterface and includes domain-specific information.Testing Enhancements:
test_deep_dadataset.pyto validate the functionality of thepackmethod with differentreturn_typevalues ("array","tensor","DeepDADataset"). Ensures that the output matches the expected types and formats.