Understanding PPS special cases: valid and invalid scores
masterThe PPS implementation identifies specific data scenarios to either optimize computation or signal unsupported inputs.
Valid scores (Optimized to 0 or 1)
These cases return a score without fitting a model:
feature_is_id: Categoric feature where all categories appear only once. Score: 0.target_is_id: Categoric target where all categories appear only once. Score: 0.target_is_constant: Target column has only one unique value. Score: 0.predict_itself: Feature and target columns are identical. Score: 1.
Invalid scores (Returns invalid_score)
These cases indicate the PPS cannot be calculated:
target_is_datetime: Target is a datetime type (Solution: convert to string).target_data_type_not_supported: Target has an unsupported data type.empty_dataframe_after_dropping_na: No rows remain after dropping NaNs (Solution: handle missing values first).unknown_error: An unexpected error occurred. This is only reported ifcatch_errors=True. To debug, setcatch_errors=Falseto see the actual exception.