Commit graph

66 commits

Author SHA1 Message Date
Galen Andrew
e8856835a6 Internal change
PiperOrigin-RevId: 671064874
2024-09-04 12:42:12 -07:00
Arun Ganesh
3e42ce318f Increments dp-accounting version in requirements
PiperOrigin-RevId: 633341323
2024-05-13 14:57:48 -07:00
Michael Reneer
fefad2190e Remove duplicate requirement.
PiperOrigin-RevId: 627166650
2024-04-22 15:02:27 -07:00
Steve Chien
0582cfdd1a Set TensorFlow version to at most 2.15.0 to avoid problems with using Keras 3.
PiperOrigin-RevId: 625104162
2024-04-15 15:34:17 -07:00
Steve Chien
95b87270d9 Split TensorFlow Privacy pypi package into two parts-- one for DP training, and one for privacy tests.
PiperOrigin-RevId: 605137291
2024-02-07 16:48:44 -08:00
Steve Chien
bbb1b487c1 Fix statsmodels version to 0.14.0, since 0.14.1 causes a breakage.
PiperOrigin-RevId: 591040422
2023-12-14 13:45:38 -08:00
Michael Reneer
e1eef3c251 Add a description to the TFP Python package.
PiperOrigin-RevId: 572384355
2023-10-10 15:30:58 -07:00
Michael Reneer
5821848fdc Update TFP setup.py to document the required versions of Python.
PiperOrigin-RevId: 572308763
2023-10-10 11:05:59 -07:00
Michael Reneer
a9ea9ba4a0 Remove unneeded tensorflow-privacy dependencies.
Please note:
1. I have manually tested the TFP release for python 3.10.
2. TFP does not define the set of python version that it is compatible with.

This change should be followed up with the following changes:
* Define the set of python version that TFP is compatible with.
* Setup a Python package building test.
* Release TFP so that projects depending on TFP can support Python 3.11

PiperOrigin-RevId: 572297305
2023-10-10 10:34:54 -07:00
Michael Reneer
0eea97f220 Update to the latest version of tensorflow-probablity.
PiperOrigin-RevId: 572283525
2023-10-10 09:59:01 -07:00
Michael Reneer
97aaf302eb Update the version of some dependencies in tensorflow_privacy.
* `attrs` to `>=21.4`.
* `dp-accounting` to `>=0.4.3`.

PiperOrigin-RevId: 566758983
2023-09-19 15:22:40 -07:00
A. Unique TensorFlower
bcc0d4927e Implement and test a registry function for tfm.nlp.layers.OnDeviceEmbedding.
This CL also moves the common embedding `sqr_norm_fn` logic between
`tf.keras.layers.Embedding` and `tfm.nlp.layers.OnDeviceEmbedding` into a
new registry function utility file.

PiperOrigin-RevId: 564481407
2023-09-11 13:18:08 -07:00
Michael Reneer
5b21aad36e Update the scipy dependency to 1.9.
PiperOrigin-RevId: 543452894
2023-06-26 08:59:44 -07:00
Steve Chien
60d237be83 Update tensorflow-probability version to 0.20.0
PiperOrigin-RevId: 533550592
2023-05-19 14:22:24 -07:00
Galen Andrew
9710a4acc7 Bump version and update dependenciesfor pypi release.
PiperOrigin-RevId: 527377853
2023-04-26 14:35:24 -07:00
Steve Chien
f99a74c7a4 Fix dependencies required by privacy_tests.
Update `distutils` to `packaging`.

PiperOrigin-RevId: 496713867
2022-12-20 11:49:28 -08:00
Michael Reneer
feddd28a63 Pin tensorflow-probability to a specific version.
This matches the documentation for specifying version for this project. Additionally, recent version of `tensorflow-probability` are releasing breaking changes and the existing version specifier allows these to breaking changes to be unintentionally pulled in.

PiperOrigin-RevId: 476443999
2022-09-23 13:04:47 -07:00
Michael Reneer
628e5bb926 Update the setup.py to match the requirements.txt.
PiperOrigin-RevId: 471128177
2022-08-30 17:16:42 -07:00
Steve Chien
ed16033a92 Update pinned commit of dp-accounting library, update dependency versions, and increase version to 0.8.6.
PiperOrigin-RevId: 470334560
2022-08-26 14:30:16 -07:00
Galen Andrew
7fe491f7a4 Update the conventions used to specify the version of a Python dependency.
* For packages that have a stable release, we use a version that is compatible with that release (e.g. `~=x.y`).
* For packages that do not have a stable release, we use a version that matches a release that has been tested (e.g. `==x.y.z`).

Additionally, added documentation to the requirements.txt.

PiperOrigin-RevId: 468720651
2022-08-19 09:38:19 -07:00
Michael Reneer
052f9a3128 Update the version of numpy to 1.23.2.
* Updated the numpy version.
* Synced the pandas version.

In Python 3.10, if you invoke `pip install pandas~=1.1.4 numpy~=1.21.4` and then `import pandas` you get the following error:

```
>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/venv/lib/python3.10/site-packages/pandas/__init__.py", line 30, in <module>
    from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
  File "/tmp/venv/lib/python3.10/site-packages/pandas/_libs/__init__.py", line 13, in <module>
    from pandas._libs.interval import Interval
  File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
```

I believe that this is the cause of the issue https://github.com/scikit-learn-contrib/hdbscan/issues/457#issuecomment-773671043

PiperOrigin-RevId: 467952859
2022-08-16 10:02:07 -07:00
Galen Andrew
8a449aaa27 Correct discrepancy between tensorflow-probability versions in requirements.txt vs setup.py.
PiperOrigin-RevId: 467326193
2022-08-12 17:04:55 -07:00
Steve Chien
38fe4aa984 Changes to prepare for release of v0.8.1.
Update WORKSPACE, setup.py, and requirements.txt to latest dp-accounting library release.

Update scipy version in setup.py.

Update version to 0.8.1.

PiperOrigin-RevId: 461944491
2022-07-19 12:22:07 -07:00
Michael Reneer
27c07fa7b8 Update the TFP requirements.
PiperOrigin-RevId: 459806353
2022-07-08 12:04:04 -07:00
Steve Chien
24f80e8c76 Increase scipy version to 1.7.1.
PiperOrigin-RevId: 459371512
2022-07-06 16:27:01 -07:00
Michael Reneer
adce0fdfc0 Update TFPs attrs dependency to version 21.4.0.
PiperOrigin-RevId: 455655859
2022-06-17 11:09:29 -07:00
Michael Reneer
2d692bbf73 Update the direct scipy dependency to ~=1.5.0.
PiperOrigin-RevId: 429122811
2022-02-16 23:27:57 +00:00
Michael Reneer
8544af2500 Update the Python dependency for sklearn package.
PiperOrigin-RevId: 428896276
2022-02-16 23:27:43 +00:00
Michael Reneer
c8a49e1039 Update the direct TensorFlow dependency to ~=2.4.
This means that we would accept a hot fix and a new minor version , but not accept major version changes without releasing TFP.

PiperOrigin-RevId: 428811702
2022-02-16 23:27:21 +00:00
Michael Reneer
13a79f419f Update the direct tensorflow-probability dependency to ~=0.15.0.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 428025242
2022-02-11 09:52:00 -08:00
Michael Reneer
8d20ae7c3b Update the direct tensorflow-datasets dependency to ~=4.5.2.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 428023939
2022-02-11 09:46:04 -08:00
Michael Reneer
f393322593 Automated rollback of commit 823aacb315
PiperOrigin-RevId: 428022174
2022-02-11 09:37:34 -08:00
Michael Reneer
823aacb315 Delete the direct tensorflow-probability.
PiperOrigin-RevId: 428020273
2022-02-11 09:28:51 -08:00
Michael Reneer
9d59eabd40 Add direct sklearn dependency.
PiperOrigin-RevId: 427925353
2022-02-10 22:33:02 -08:00
Michael Reneer
592ed995f1 Update the direct scipy dependency to ~=1.2.1.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 427916084
2022-02-10 21:19:53 -08:00
Michael Reneer
93bd134947 Add direct pandas dependency.
PiperOrigin-RevId: 427915591
2022-02-10 21:15:39 -08:00
Michael Reneer
28f8a5ff61 Add direct numpy dependency.
PiperOrigin-RevId: 427915040
2022-02-10 21:10:52 -08:00
Michael Reneer
1f229dbaf5 Update the direct attrs dependency to ~=21.2.0.
This means that we would accept a hot fix, but not accept major or minor version changes without releasing TFP.

PiperOrigin-RevId: 427914787
2022-02-10 21:08:42 -08:00
Michael Reneer
6aa31d95dd Add direct matplotlib dependency.
PiperOrigin-RevId: 427914629
2022-02-10 21:06:59 -08:00
Michael Reneer
d1e045ed88 Add direct absl-py dependency.
PiperOrigin-RevId: 427914169
2022-02-10 21:04:06 -08:00
Michael Reneer
dd31737cb7 Update the setup.py for TensorFlow Privacy.
* Removed stale documentation.
* Updated to read version from the `version.py` module.
* Remove test only dependency.

PiperOrigin-RevId: 424932559
2022-01-28 12:34:01 -08:00
Michael Reneer
75f88f8120 Sort TensorFlow Privacy requirements and required dependencies.
Sorting alphabetically this can help keep these lists maintained, in sync, and current.

PiperOrigin-RevId: 424433354
2022-01-26 13:46:23 -08:00
Galen Andrew
06eef51369 New version 0.7.3
PiperOrigin-RevId: 395263672
2021-09-07 09:24:02 -07:00
Galen Andrew
477b5b2899 Remove declaration of dependency on tensorflow.
PiperOrigin-RevId: 392683668
2021-08-24 09:39:25 -07:00
Galen Andrew
f44dcb8760 Add tensorflow and tensorflow-datasets to setup/requirements.
PiperOrigin-RevId: 390171562
2021-08-11 10:54:46 -07:00
Galen Andrew
fbaa55cc43 Add dependency on tensorflow probability.
PiperOrigin-RevId: 389962756
2021-08-10 13:23:31 -07:00
Galen Andrew
c447a1a3c2 Bump version number.
PiperOrigin-RevId: 389959093
2021-08-10 13:08:24 -07:00
Galen Andrew
7f44b02456 Increment version number.
PiperOrigin-RevId: 384507585
2021-07-13 11:14:18 -07:00
Steve Chien
34249f464b Update version to 0.6.1 to prepare for new release.
PiperOrigin-RevId: 382196622
2021-06-29 17:08:44 -07:00
Steve Chien
94f03d09f3 Add attrs to setup and requirements.
PiperOrigin-RevId: 382121530
2021-06-29 10:57:58 -07:00