dieterich-lab / ASyH

The Anonymous Synthesizer for Health Data
MIT License
3 stars 0 forks source link

Delay SDV model creation. #7

Closed garrgravarr closed 1 year ago

garrgravarr commented 1 year ago

The actual instantiation of the SDV model should be done just before we want to train with data, since we want to make sure we can adapt the argument list for the model constructor according to the input data and metadata.

The _train() method is defined in the generic Model class. The specific constructor should therefore be called with adapted arguments within the generic interface.

Thus, we should not provide a ready-made SDV model object to Model.init(), but instead provide a method calling the actual constructor with the specific arguments (as a dictionary, compare Issue #6).