Skip to content

Commit 09771d3

Browse files
[MRG] Fix docstring for the regulariation parameter of DA loss (#230)
* fix docstring * fix docstring --------- Co-authored-by: Antoine Collas <[email protected]>
1 parent 0730235 commit 09771d3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

skada/deep/_adversarial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def DANN(
100100
The name of the module's layer whose outputs are
101101
collected during the training.
102102
reg : float, default=1
103-
Regularization parameter.
103+
Regularization parameter for DA loss.
104104
domain_classifier : torch module, default=None
105105
A PyTorch :class:`~torch.nn.Module` used to classify the
106106
domain. If None, a domain classifier is created following [1]_.
@@ -344,7 +344,7 @@ def CDAN(
344344
The name of the module's layer whose outputs are
345345
collected during the training.
346346
reg : float, default=1
347-
Regularization parameter.
347+
Regularization parameter for DA loss.
348348
max_features : int, default=4096
349349
Maximum size of the input for the domain classifier.
350350
4096 is the largest number of units in typical deep network

skada/deep/_divergence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def DeepCoral(module, layer_name, reg=1, base_criterion=None, **kwargs):
6363
The name of the module's layer whose outputs are
6464
collected during the training for the adaptation.
6565
reg : float, optional (default=1)
66-
The regularization parameter of the covariance estimator.
66+
Regularization parameter for DA loss.
6767
base_criterion : torch criterion (class)
6868
The base criterion used to compute the loss with source
6969
labels. If None, the default is `torch.nn.CrossEntropyLoss`.
@@ -142,7 +142,7 @@ def DAN(module, layer_name, reg=1, sigmas=None, base_criterion=None, **kwargs):
142142
The name of the module's layer whose outputs are
143143
collected during the training for the adaptation.
144144
reg : float, optional (default=1)
145-
The regularization parameter of the covariance estimator.
145+
Regularization parameter for DA loss.
146146
sigmas : array-like, optional (default=None)
147147
The sigmas for the Gaussian kernel.
148148
base_criterion : torch criterion (class)

skada/deep/_optimal_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def DeepJDOT(
9292
The name of the module's layer whose outputs are
9393
collected during the training for the adaptation.
9494
reg : float, default=1
95-
Regularization parameter.
95+
Regularization parameter for DA loss.
9696
reg_cl : float, default=1
9797
Class distance term regularization parameter.
9898
base_criterion : torch criterion (class)

skada/deep/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class DomainAwareCriterion(torch.nn.Module):
3737
The initialized criterion (loss) used to compute the
3838
loss to reduce the divergence between domains.
3939
reg: float, default=1
40-
Regularization parameter.
40+
Regularization parameter for DA loss.
4141
reduction: str, default='mean'
4242
Specifies the reduction to apply to the output: 'none' | 'mean' | 'sum'.
4343
'none': no reduction will be applied,

0 commit comments

Comments
 (0)