Skip to content

Commit a72a9d6

Browse files
rstzcopybara-github
authored andcommitted
Prepare release of TF-DF 1.8.0
PiperOrigin-RevId: 582629345
1 parent a9cbbd4 commit a72a9d6

File tree

7 files changed

+29
-16
lines changed

7 files changed

+29
-16
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 1.8.0 - 2023-11-15
4+
5+
### Features
6+
7+
- Compatibility with TensorFlow 2.15.0.
8+
- Inspector support for uplifting.
9+
10+
### Fix
11+
12+
- Less warnings emitted when loading a model.
13+
314
## 1.7.0 - 2023-10-20
415

516
### Features

WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1111
# absl used by tensorflow.
1212
http_archive(
1313
name = "org_tensorflow",
14-
strip_prefix = "tensorflow-2.14.0",
15-
sha256 = "447cdb65c80c86d6c6cf1388684f157612392723eaea832e6392d219098b49de",
16-
urls = ["https://github.com/tensorflow/tensorflow/archive/v2.14.0.zip"],
14+
strip_prefix = "tensorflow-2.15.0",
15+
sha256 = "9cec5acb0ecf2d47b16891f8bc5bc6fbfdffe1700bdadc0d9ebe27ea34f0c220",
16+
urls = ["https://github.com/tensorflow/tensorflow/archive/v2.15.0.zip"],
1717
# Starting with TF 2.14, disable hermetic Python builds.
1818
patch_args = ["-p1"],
1919
patches = ["//third_party/tensorflow:tf.patch"],

configure/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
from setuptools.command.install import install
2222
from setuptools.dist import Distribution
2323

24-
_VERSION = "1.7.0"
24+
_VERSION = "1.8.0"
2525

2626
with open("README.md", "r", encoding="utf-8") as fh:
2727
long_description = fh.read()
2828

2929
REQUIRED_PACKAGES = [
3030
"numpy",
3131
"pandas",
32-
"tensorflow~=2.14.0",
32+
"tensorflow~=2.15.0",
3333
"six",
3434
"absl_py",
3535
"wheel",

documentation/known_issues.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ tensorflow_decision_forests/tensorflow/ops/training/training.so: undefined symbo
3737

3838
- Use the version of TF-DF that is compatible with your version of TensorFlow.
3939

40+
Note that TF-DF is not compatible with Keras 3 at this time.
41+
4042
### Compatibility table
4143

4244
The following table shows the compatibility between

tensorflow_decision_forests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
5252
"""
5353

54-
__version__ = "1.7.0"
54+
__version__ = "1.8.0"
5555
__author__ = "Mathieu Guillame-Bert"
5656

57-
compatible_tf_versions = ["2.14.0"]
57+
compatible_tf_versions = ["2.15.0"]
5858
__git_version__ = "HEAD" # Modify for release build.
5959

6060
from tensorflow_decision_forests.tensorflow import check_version

tensorflow_decision_forests/keras/wrappers_pre_generated.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -785,12 +785,12 @@ def capabilities() -> abstract_learner_pb2.LearnerCapabilities:
785785
class GradientBoostedTreesModel(core.CoreModel):
786786
r"""Gradient Boosted Trees learning algorithm.
787787
788-
A GBT (Gradient Boosted [Decision] Tree;
789-
https://statweb.stanford.edu/~jhf/ftp/trebst.pdf) is a set of shallow
790-
decision trees trained sequentially. Each tree is trained to predict and then
791-
"correct" for the errors of the previously trained trees (more precisely each
792-
tree predict the gradient of the loss relative to the model output).
793-
GBTs use [early stopping](early_stopping.md) to avoid overfitting.
788+
A [Gradient Boosted Trees](https://statweb.stanford.edu/~jhf/ftp/trebst.pdf)
789+
(GBT), also known as Gradient Boosted Decision Trees (GBDT) or Gradient
790+
Boosted Machines (GBM), is a set of shallow decision trees trained
791+
sequentially. Each tree is trained to predict and then "correct" for the
792+
errors of the previously trained trees (more precisely each tree predict the
793+
gradient of the loss relative to the model output).
794794
795795
Usage example:
796796
@@ -1169,7 +1169,7 @@ class GradientBoostedTreesModel(core.CoreModel):
11691169
subsample: Ratio of the dataset (sampling without replacement) used to train
11701170
individual trees for the random sampling method. If \\"subsample\\" is set
11711171
and if \\"sampling_method\\" is NOT set or set to \\"NONE\\", then
1172-
\\"sampling_method\\" is implicitely set to \\"RANDOM\\". In other words,
1172+
\\"sampling_method\\" is implicitly set to \\"RANDOM\\". In other words,
11731173
to enable random subsampling, you only need to set "\\"subsample\\".
11741174
Default: 1.0.
11751175
uplift_min_examples_in_treatment: For uplift models only. Minimum number of

tools/start_compile_docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# ./tools/start_compile_docker.sh
2626
#
2727
# # Compile and test TF-DF.
28-
# RUN_TESTS=1 PY_VERSION=3.9 TF_VERSION=2.12.0 ./tools/test_bazel.sh
28+
# RUN_TESTS=1 PY_VERSION=3.9 TF_VERSION=2.15.0 ./tools/test_bazel.sh
2929
#
3030
# # Create a Pip package for a specific version of python.
3131
# ./tools/build_pip_package.sh python3.9
@@ -58,7 +58,7 @@
5858
# ./tools/build_pip_package.sh ALL_VERSIONS_ALREADY_ASSEMBLED
5959
#
6060
# https://hub.docker.com/r/tensorflow/build/tags?page=1
61-
DOCKER=tensorflow/build:2.14-python3.9
61+
DOCKER=tensorflow/build:2.15-python3.9
6262

6363
# Current directory
6464
# Useful if Yggdrasil Decision Forests is available locally in a neighbor

0 commit comments

Comments
 (0)