Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added class_weights for cross entropy loss to segmentation.py (#1221)
* added class_weights for cross entropy loss to segmentation.py * added class_weights for cross entropy loss to segmentation.py * added class_weights for cross entropy loss to segmentation.py and fixed formatting * added class_weights for cross entropy loss to segmentation.py, fixed formatting, added deleted loss * Made class_weights argument optional * fixed black formatting * included versionadded: 0.5 and parameter to docstring * added newline between sections, removed manual type checking, moved class_weights parameter after loss parameter * Deleted duplicated line --------- Co-authored-by: Caleb Robinson <[email protected]>
- Loading branch information