repeat
Repeat
¶
Bases: NumpyOp
Repeat a NumpyOp several times in a row.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
op
|
NumpyOp
|
A NumpyOp to be run one or more times in a row. |
required |
repeat
|
Union[int, Callable[..., bool]]
|
How many times to repeat the |
1
|
max_iter
|
Optional[int]
|
A limit to how many iterations will be run (or None for no limit). |
None
|
Raises:
Type | Description |
---|---|
ValueError
|
If |
Source code in fastestimator/fastestimator/op/numpyop/meta/repeat.py
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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
set_rua_level
¶
Set the augmentation intensity based on the magnitude_coef.
This method is specifically designed to be invoked by the RUA Op.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
magnitude_coef
|
float
|
The desired augmentation intensity (range [0-1]). |
required |
Raises:
Type | Description |
---|---|
AttributeError
|
If the 'op' doesn't have a 'set_rua_level' method. |