Skip to content

DateTimeTransformer not importing #603

@PaulineMauryL

Description

@PaulineMauryL

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions