Skip to content

Commit

Permalink
Add deprecation warning to train method
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeknep committed May 22, 2023
1 parent 28626af commit 8360d3a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gretel_trainer/relational/multi_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,13 @@ def _train_synthetics_models(self, training_data: dict[str, Path]) -> None:
)

def train(self) -> None:
"""Train synthetic data models on each table in the relational dataset"""
"""
DEPRECATED: Please use `train_synthetics` instead.
"""
logger.warning(
"This method is deprecated and will be removed in a future release. "
"Please use `train_synthetics` instead."
)
tables = self.relational_data.list_all_tables()
self._synthetics_train = SyntheticsTrain()

Expand Down

0 comments on commit 8360d3a

Please sign in to comment.