Newly tracked file
src/ashpy/trainers/trainer.py
changed.
Showing 1 of 1 files from the diff.
@@ -175,7 +175,15 @@
Loading
175 | 175 | ||
176 | 176 | @staticmethod |
|
177 | 177 | def _check_loss_name_collision(losses: List[ashpy.losses.Executor]): |
|
178 | - | """Check that all losses have unique names.""" |
|
178 | + | """ |
|
179 | + | Check that all losses have unique names. |
|
180 | + | ||
181 | + | Args: |
|
182 | + | losses (List[:py:class:`ashpy.losses.Executor`]): List of losses used by the current trainer. |
|
183 | + | Raises: |
|
184 | + | ValueError if there are losses with conflicting names |
|
185 | + | ||
186 | + | """ |
|
179 | 187 | names = [] |
|
180 | 188 | ||
181 | 189 | for loss in losses: |
Files | Coverage |
---|---|
src/ashpy | 87.17% |
Project Totals (56 files) | 87.17% |
178.1
TRAVIS_PYTHON_VERSION=3.7 TRAVIS_OS_NAME=linux
177.1
TRAVIS_PYTHON_VERSION=3.7 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.