Skip to content

Commit

Permalink
Constrain some packages in gretel-synthetics, eliminate a deprecated …
Browse files Browse the repository at this point in the history
…NumPy alias, and port over README

GitOrigin-RevId: f510307c11b2c51e7268fb77e69a008d3e6a926c
  • Loading branch information
misberner committed May 9, 2023
1 parent 4844ead commit 997be9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
category-encoders==2.2.2
loky==2.9.0
numpy>=1.18.0
pandas>=1.1.0
numpy>=1.18.0,<1.24
pandas>=1.1.0,<2
protobuf~=3.20
sentencepiece==0.1.97
smart_open>=2.1.0,<6.0
Expand Down
2 changes: 1 addition & 1 deletion src/gretel_synthetics/utils/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_numeric_distribution_bins(training: pd.Series, synthetic: pd.Series):
else:
min_value = min(np.nanmin(training), np.nanmin(synthetic))
max_value = max(np.nanmax(training), np.nanmax(synthetic))
bins = np.array([], dtype=np.float)
bins = np.array([], dtype=np.float64)

# Use 'doane' to find bins. 'fd' causes too many OOM issues.
# We also bin across the training and synthetic Series combined since we are binning across the combined range, otherwise we can see OOM's or sigkill's.
Expand Down

0 comments on commit 997be9e

Please sign in to comment.