RVAE_MixedTypes icon indicating copy to clipboard operation
RVAE_MixedTypes copied to clipboard

[BUG] Errors for Dataset with No Categorical Columns

Open tim5go opened this issue 4 years ago • 0 comments

For custom dataset with no categorical columns, the following error will raise when running python core_models/main.py ,

TypeError: reduce() of empty sequence with no initial value from https://github.com/sfme/RVAE_MixedTypes/blob/0555fc63b7f7cc5fa1910ffc19cd061b125dd54d/src/core_models/mixedDataset.py#L73-L75

I think adding a default 0 value in the reduce method should solve the problem.

tim5go avatar Jun 02 '21 03:06 tim5go