opendp / smartnoise-sdk

Tools and service for differentially private processing of tabular and relational data
MIT License
254 stars 68 forks source link

DateTimeTransformer not importing #603

Open PaulineMauryL opened 3 months ago

PaulineMauryL commented 3 months ago

Hi,

I would like to create my own table transformer and wonder if there is a reason to not use DateTimeTransformer ? It it is not in https://github.com/opendp/smartnoise-sdk/blob/main/synth/snsynth/transform/__init__.py ? It is also not in the documentation (https://docs.smartnoise.org/synth/transforms/index.html#snsynth.transform.table.TableTransformer.fit_transform). I had smartnoise-synth==1.0.3 on python 3.11.0 and now have to smartnoise-synth==1.0.4 on python 3.11.9.

from snsynth.transform import (
    AnonymizationTransformer,
    BinTransformer,
    ChainTransformer,
    # DateTimeTransformer, # must comment out
    LabelTransformer,
    MinMaxTransformer,
    OneHotEncoder,
)
from snsynth.transform.datetime import DateTimeTransformer # is it not recommended ?

Thank you for the help!