FixedIncrements
constraint cannot be applied conjunction with Inequality
constraint
#2360
Labels
bug
Something isn't working
Environment Details
Please indicate the following details about the environment in which you found the bug:
Error Description
Overlapping other constraints with the
FixedIncrements
constraint may cause errors during sampling. This was discovered when trying to test theChainedInequality
constraint.The issue is that the
FixedIncrements
constraint will directly modify the constraint column, which may make downstream constraints invalid. Data validation is only done on the original data and not on the intermediate input data to the constraint, so this is not being caught during fit. In the below example, null/-inf values are being created by theInequality
constraint during preprocess. During sample, trying to force null/inf values back to ints is what is causing the error.Applying
Inequality
beforeFixedIncrements
works as expected.Steps to reproduce
I would expect the sampling here to work. Although there is an overlapping column, the Inequality constraint can fall back to using reject sampling. Instead, I see that there is an error during sampling:
IntCastingNaNError: Error: Sampling terminated. No results were saved due to unspecified "output_file_path".
The text was updated successfully, but these errors were encountered: