Skip to content

Commit

Permalink
set new constant value for LogScaler test
Browse files Browse the repository at this point in the history
  • Loading branch information
rwedge committed Jan 21, 2025
1 parent 1c5289d commit 57e2a94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration/test_transformers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections import defaultdict

import numpy as np
import pandas as pd
import pytest

Expand All @@ -12,6 +13,8 @@

PRIMARY_SDTYPES = ['boolean', 'categorical', 'datetime', 'numerical']

INT32_MIN = np.iinfo(np.int32).min

# Additional arguments for transformers
TRANSFORMER_ARGS = {
'BinaryEncoder': {
Expand All @@ -23,7 +26,7 @@
'FloatFormatter': {'missing_value_generation': 'from_column'},
'GaussianNormalizer': {'missing_value_generation': 'from_column'},
'ClusterBasedNormalizer': {'missing_value_generation': 'from_column'},
'LogScaler': {'constant': -40000000000, 'missing_value_generation': 'from_column'},
'LogScaler': {'constant': INT32_MIN, 'missing_value_generation': 'from_column'},
}

# Mapping of rdt sdtype to dtype
Expand Down

0 comments on commit 57e2a94

Please sign in to comment.