multiple_validators
MultipleValidators
¶
Bases: BaseValidator
Wraps multiple validators and returns the sum of their scores.
Source code in pytorch_adapt\validators\multiple_validators.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
__call__(**kwargs)
¶
Returns:
Type | Description |
---|---|
Union[float, Tuple[float, Dict[str, float]]]
|
The sum of the validator scores. If |
Source code in pytorch_adapt\validators\multiple_validators.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
__init__(validators, weights=None, return_sub_scores=False, **kwargs)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
validators |
Union[List['BaseValidator'], Dict[str, 'BaseValidator']]
|
A list of validators or a dictionary mapping from strings to validators. |
required |
weights |
Union[List[float], Dict[str, float]]
|
A list of floats or a dictionary mapping from validator names to floats.
If |
None
|
return_sub_scores |
If |
False
|
Source code in pytorch_adapt\validators\multiple_validators.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|