sdv-dev / SDV

Synthetic data generation for tabular data
https://docs.sdv.dev/sdv
Other
2.21k stars 287 forks source link

Added constant for float relative tolerance #2071

Open rgerkin opened 2 weeks ago

rgerkin commented 2 weeks ago

There is currently no user-accessible way to control the float tolerance for conditionally sampling. While exposing this in the API would be best, this PR at least allows the user to modify this value directly in the module.

N.B. There are actually 2 different values of float_rtol used in the module, one was 0.1 by default and the rest were 0.01. I set these all to the same constant, since I saw no clear reason why they should be different.