Skip to content

Better handling of outliers for numeric extractors #120

@racinmat

Description

@racinmat

Numeric scalar extractor now performs min-max normalization, which is very sensitive to outliers. Large, during schema computation unseen outliers can be transformed to large values, leading to exploding gradient.
We could fix this aby applying following function at the end of scalar numeric extractor:

f(x) = x if x ∈ [0, 1]
f(x) = ln(x) + 1 if x > 1
f(x) = -ln(-x + 1) if x < 0

which lowers the magnitude of large numbers.

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