You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to avoid this error by casting all int columns to float, then re-fitting, then sampling, then finally casting back to int in the sampled data.
# In real data, cast from int -> float
real_data['Total Price'] = real_data['Total Price'].astype(float)
# In synthetic data, cast from float -> int
synthetic_data['Total Price'] = synthetic_data['Total Price'].astype(int)
The text was updated successfully, but these errors were encountered:
Environment Details
Problem Description
When using FixedCombinations, if the underlying dtype of a constraint column is
int
, then an error is thrown during sampling.Error Description
Error seems to start with this line of code: https://github.com/sdv-dev/SDV/blob/9301b964504ec53df977f1db5eab28b5b2e2c352/sdv/data_processing/data_processor.py
Steps to reproduce
Dataset: stock_missingcol.csv
Code:
Internal Colab Notebook: https://colab.research.google.com/drive/1XUL42Wa13NQ2t0qewCoyCDYHHxmRO6ku?authuser=1#scrollTo=UGo3e-QJFk0a
Workaround
I was able to avoid this error by casting all int columns to float, then re-fitting, then sampling, then finally casting back to int in the sampled data.
The text was updated successfully, but these errors were encountered: