Skip to content

Commit a3d1e4e

Browse files
rstzcopybara-github
authored andcommitted
Release TF-DF 1.4.0 and YDF 1.5.0
PiperOrigin-RevId: 545230857
1 parent 407772c commit a3d1e4e

File tree

7 files changed

+27
-16
lines changed

7 files changed

+27
-16
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
## HEAD
44

5+
## 1.4.0 - 2023-07-03
6+
7+
### Features
8+
9+
- Support for multi-task learning.
10+
- New tutorial for TF-DF <--> TF.js
11+
- Support for uplift modeling in the model inspector.
12+
- New tutorial for Uplift modeling.
13+
- Bump Bazel version to 6.1.0.
14+
15+
### Fix
16+
17+
- Regex to generate Bazel workspace.
18+
- Remove warning when converting Keras -> YDF.
19+
- Fixed default hyperparameter issue Github #172.
20+
- Various documentation issues fixed.
21+
522
## 1.3.0 - 2023-03-23
623

724
### Features

configure/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from setuptools.command.install import install
2222
from setuptools.dist import Distribution
2323

24-
_VERSION = "1.3.0"
24+
_VERSION = "1.4.0"
2525

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

documentation/known_issues.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The following table shows the compatibility between
4646

4747
tensorflow_decision_forests | tensorflow
4848
--------------------------- | ---------------
49-
1.3.0 | 2.12.0
49+
1.3.0 - 1.4.0 | 2.12.0
5050
1.1.0 - 1.2.0 | 2.11.0
5151
1.0.0 - 1.0.1 | 2.10.0 - 2.10.1
5252
0.2.6 - 0.2.7 | 2.9.1

tensorflow_decision_forests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
5252
"""
5353

54-
__version__ = "1.3.0"
54+
__version__ = "1.4.0"
5555
__author__ = "Mathieu Guillame-Bert"
5656

5757
compatible_tf_versions = ["2.12.0"]

tensorflow_decision_forests/keras/wrappers_pre_generated.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,10 +1050,12 @@ class GradientBoostedTreesModel(core.CoreModel):
10501050
values are: - `DEFAULT`: Select the loss automatically according to the
10511051
task and label statistics. - `BINOMIAL_LOG_LIKELIHOOD`: Binomial log
10521052
likelihood. Only valid for binary classification. - `SQUARED_ERROR`: Least
1053-
square loss. Only valid for regression. - `MULTINOMIAL_LOG_LIKELIHOOD`:
1054-
Multinomial log likelihood i.e. cross-entropy. Only valid for binary or
1055-
multi-class classification. - `LAMBDA_MART_NDCG5`: LambdaMART with NDCG5.
1056-
- `XE_NDCG_MART`: Cross Entropy Loss NDCG. See arxiv.org/abs/1911.09798.
1053+
square loss. Only valid for regression. - `POISSON`: Poisson log
1054+
likelihood loss. Mainly used for counting problems. Only valid for
1055+
regression. - `MULTINOMIAL_LOG_LIKELIHOOD`: Multinomial log likelihood
1056+
i.e. cross-entropy. Only valid for binary or multi-class classification. -
1057+
`LAMBDA_MART_NDCG5`: LambdaMART with NDCG5. - `XE_NDCG_MART`: Cross
1058+
Entropy Loss NDCG. See arxiv.org/abs/1911.09798.
10571059
Default: "DEFAULT".
10581060
max_depth: Maximum depth of the tree. `max_depth=1` means that all trees
10591061
will be roots. Negative values are ignored. Default: 6.
@@ -1405,8 +1407,6 @@ def capabilities() -> abstract_learner_pb2.LearnerCapabilities:
14051407
class HyperparameterOptimizerModel(core.CoreModel):
14061408
r"""Hyperparameter Optimizer learning algorithm.
14071409
1408-
1409-
14101410
Usage example:
14111411
14121412
```python
@@ -1632,12 +1632,9 @@ def capabilities() -> abstract_learner_pb2.LearnerCapabilities:
16321632
support_partial_cache_dataset_format=False
16331633
)
16341634

1635-
16361635
class MultitaskerModel(core.CoreModel):
16371636
r"""Multitasker learning algorithm.
16381637
1639-
1640-
16411638
Usage example:
16421639
16431640
```python
@@ -1863,7 +1860,6 @@ def capabilities() -> abstract_learner_pb2.LearnerCapabilities:
18631860
support_partial_cache_dataset_format=False
18641861
)
18651862

1866-
18671863
class RandomForestModel(core.CoreModel):
18681864
r"""Random Forest learning algorithm.
18691865

tools/start_compile_docker.sh

Lines changed: 1 addition & 1 deletion
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.8 TF_VERSION=2.11.0 ./tools/test_bazel.sh
28+
# RUN_TESTS=1 PY_VERSION=3.8 TF_VERSION=2.12.0 ./tools/test_bazel.sh
2929
#
3030
# # Create a Pip package for a specific version of python.
3131
# ./tools/build_pip_package.sh python3.8

tools/test_bazel.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ else
177177
TEST_RULES="//tensorflow_decision_forests/component/...:all //tensorflow_decision_forests/contrib/...:all //tensorflow_decision_forests/keras/...:all"
178178
fi
179179

180-
ls -l -a
181-
182180
# Build library
183181
time ${BAZEL} ${STARTUP_FLAGS} build ${BUILD_RULES} ${FLAGS}
184182

0 commit comments

Comments
 (0)