Skip to content

[MRG] Add DeepDADataset#302

Merged
tgnassou merged 29 commits intoscikit-adaptation:mainfrom
mbarneche:mbarneche-deep
Jun 10, 2025
Merged

[MRG] Add DeepDADataset#302
tgnassou merged 29 commits intoscikit-adaptation:mainfrom
mbarneche:mbarneche-deep

Conversation

@mbarneche
Copy link
Contributor

DeepDADatasets is an attempt at unifying the different data representations used in skada deep

X["sample_idx"] = sample_idx
return X, None
elif isinstance(X, Dataset):
try :
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't really like the try here. What does it break sometime ?

sample_domain = dataset.get("sample_domain", sample_domain)
sample_weight = dataset.get("sample_weight", sample_weight)

dataset = DeepDADataset(X, y, sample_domain, sample_weight, device=self.device)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You creating a DeepDADAtaset inside itself ?

self._initialize(X, y, sample_domain, sample_weight)

def _initialize(self, X:torch.Tensor, y, sample_domain, sample_weight):
try :
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can just try is 'sample_domain is None' ? If it's None you create a troch.full.

@tgnassou tgnassou changed the title [WIP] DeepDADataset [MRG] Add DeepDADataset Jun 10, 2025
@tgnassou tgnassou merged commit fa95e7b into scikit-adaptation:main Jun 10, 2025
5 checks passed
@mbarneche mbarneche deleted the mbarneche-deep branch June 10, 2025 14:19
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