Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#604 fix master installation

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-000_fix_master_inastallation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. class IllegalRangeForLossAttributeException(Exception):
  2. """
  3. Exception raised illegal value (i.e not in range) for _Loss attribute.
  4. Attributes:
  5. message -- explanation of the error
  6. """
  7. def __init__(self, range_vals: tuple, attr_name: str):
  8. self.message = attr_name + " must be in range " + str(range_vals)
  9. super().__init__(self.message)
  10. class RequiredLossComponentReductionException(Exception):
  11. """
  12. Exception raised illegal reduction for _Loss component.
  13. Attributes:
  14. message -- explanation of the error
  15. """
  16. def __init__(self, component_name: str, reduction: str, required_reduction: str):
  17. self.message = component_name + ".reduction must be " + required_reduction + ", got" + reduction
  18. super().__init__(self.message)
Discard
Tip!

Press p or to see the previous file or, n or to see the next file