Skip to content

Commit

Permalink
Fix ErrorCode docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Aug 9, 2021
1 parent 2c4cb44 commit 2148a52
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions evalml/exceptions/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,31 +106,31 @@ class PartialDependenceErrorCode(Enum):
"""Enum identifying the type of error encountered in partial dependence."""

TOO_MANY_FEATURES = "too_many_features"
"""TOO_MANY_FEATURES = 'too_many_features'"""
"""too_many_features"""
FEATURES_ARGUMENT_INCORRECT_TYPES = "features_argument_incorrect_types"
"""FEATURES_ARGUMENT_INCORRECT_TYPES = 'features_argument_incorrect_types'"""
"""features_argument_incorrect_types"""
UNFITTED_PIPELINE = "unfitted_pipeline"
"""UNFITTED_PIPELINE = 'unfitted_pipeline'"""
"""unfitted_pipeline"""
PIPELINE_IS_BASELINE = "pipeline_is_baseline"
"""PIPELINE_IS_BASELINE = 'pipeline_is_baseline'"""
"""pipeline_is_baseline"""
TWO_WAY_REQUESTED_FOR_DATES = "two_way_requested_for_dates"
"""TWO_WAY_REQUESTED_FOR_DATES = 'two_way_requested_for_dates'"""
"""two_way_requested_for_dates"""
FEATURE_IS_ALL_NANS = "feature_is_all_nans"
"""FEATURE_IS_ALL_NANS = 'feature_is_all_nans'"""
"""feature_is_all_nans"""
FEATURE_IS_MOSTLY_ONE_VALUE = "feature_is_mostly_one_value"
"""FEATURE_IS_MOSTLY_ONE_VALUE = 'feature_is_mostly_one_value'"""
"""feature_is_mostly_one_value"""
COMPUTED_PERCENTILES_TOO_CLOSE = "computed_percentiles_too_close"
"""COMPUTED_PERCENTILES_TOO_CLOSE = 'computed_percentiles_too_close'"""
"""computed_percentiles_too_close"""
INVALID_FEATURE_TYPE = "invalid_feature_type"
"""INVALID_FEATURE_TYPE = 'invalid_feature_type'"""
"""invalid_feature_type"""
ICE_PLOT_REQUESTED_FOR_TWO_WAY_PLOT = (
"ice_plot_requested_for_two_way_partial_dependence_plot"
)
"""ICE_PLOT_REQUESTED_FOR_TWO_WAY_PLOT = 'ice_plot_requested_for_two_way_partial_dependence_plot'"""
"""ice_plot_requested_for_two_way_partial_dependence_plot"""
INVALID_CLASS_LABEL = "invalid_class_label_requested_for_plot"
"""INVALID_CLASS_LABEL = 'invalid_class_label_requested_for_plot'"""
"""invalid_class_label_requested_for_plot"""
ALL_OTHER_ERRORS = "all_other_errors"
"""ALL_OTHER_ERRORS = 'all_other_errors'"""
"""all_other_errors"""


class PartialDependenceError(ValueError):
Expand Down

0 comments on commit 2148a52

Please sign in to comment.