forked from WayScience/pyroptosis_signature_data_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request WayScience#35 from MikeLippincott/30-create-custom…
…-exceptions-for-each-exception-stated-in-utilspy create custom exceptions for utils.py
- Loading branch information
Showing
2 changed files
with
72 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# define python user-defined exceptions | ||
|
||
|
||
class TrainingValidationTestingSplitError(Exception): | ||
"""Exception occurs in the case that the training, validation, and testing splits do not add up to 1.0""" | ||
|
||
pass | ||
|
||
|
||
class YDataTypeError(Exception): | ||
"""Exception occurs in the case that the y data does not have the correct data type | ||
(e.g., each model has a different y data type)""" | ||
|
||
pass | ||
|
||
|
||
class ModelTypeError(Exception): | ||
"""Exception occurs in the case that the model type is not specified correctly""" | ||
|
||
pass | ||
|
||
|
||
class OptimizationMetricError(Exception): | ||
"""Exception occurs in the case that the optimization metric is not specified correctly""" | ||
|
||
pass |
Oops, something went wrong.