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
The HMASynthesizer fails to fit a dataset if it has a table that is contains only a primary key and foreign keys. This error occurs because all the columns have been dropped for the given table therefore it can't fit the model.
File~/Projects/sdv-dev/SDV/sdv/multi_table/hma.py:188, inHMASynthesizer._model_table(self, table_name, tables)
184self._clear_nans(table)
185LOGGER.info('Fitting %s for table %s; shape: %s', self._synthesizer.__name__,
186table_name, table.shape)
-->188self._table_synthesizers[table_name].fit_processed_data(table)
190forname, valuesinkeys.items():
191table[name] =valuesFile~/Projects/sdv-dev/SDV/sdv/single_table/base.py:421, inBaseSynthesizer.fit_processed_data(self, processed_data)
414deffit_processed_data(self, processed_data):
415"""Fit this model to the transformed data. 416 417 Args: 418 processed_data (pandas.DataFrame): 419 The transformed data used to fit the model to. 420 """-->421self._fit(processed_data)
422self._fitted=True423self._fitted_date=datetime.datetime.today().strftime('%Y-%m-%d')
File~/Projects/sdv-dev/SDV/sdv/single_table/copulas.py:132, inGaussianCopulaSynthesizer._fit(self, processed_data)
130withwarnings.catch_warnings():
131warnings.filterwarnings('ignore', module='scipy')
-->132self._model.fit(processed_data)
....
ValueError: needatleastonearraytoconcatenate
This is what the Metadata structure looks like:
As seen in the image the error occurs on the gmember table.
Environment Details
Error Description
The
HMASynthesizer
fails to fit a dataset if it has a table that is contains only a primary key and foreign keys. This error occurs because all the columns have been dropped for the given table therefore it can't fit the model.This is what the Metadata structure looks like:
![image](https://user-images.githubusercontent.com/41479552/218334603-53a5ab08-96d5-4fbb-8a22-26b2e2925e77.png)
As seen in the image the error occurs on the
gmember
table.Steps to reproduce
The text was updated successfully, but these errors were encountered: