Skip to content

Commit 999372b

Browse files
committed
Internal change
PiperOrigin-RevId: 373175082
1 parent 3bf61a2 commit 999372b

17 files changed

+1329
-1535
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ The following resources are available:
5050
- [Colabs](documentation/tutorials)
5151
- [Migration guide from Neural Network to Decision Forests](documentation/migration.md)
5252
- [Issue tracker](https://github.com/tensorflow/decision-forests/issues)
53+
- [Known issues](documentation/known_issues.md)
5354
- [Changelog](CHANGELOG.md)
5455
- [Discuss on TensorFlow.Org](https://discuss.tensorflow.org)
5556
- [Yggdrasil documentation](https://github.com/google/yggdrasil-decision-forests)

documentation/_index.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ landing_page:
4949
<li><a href="tutorials/index">Tutorial</a></li>
5050
<li><a href="migration">Migration guide from Neural Network to Decision Forests</a></li>
5151
<li><a href="https://github.com/tensorflow/decision-forests/issues">Issue tracker</a></li>
52+
<li><a href="https://github.com/tensorflow/decision-forests/documentation/known_issues.md">Known issues</a></li>
5253
<li><a href="https://github.com/tensorflow/decision-forests/blob/master/CHANGELOG">Changelog</a></li>
5354
<li><a href="https://discuss.tensorflow.org">Discuss on TensorFlow.Org</a></li>
5455
<li><a href="https://github.com/google/yggdrasil-decision-forests">Yggdrasil Decision Forest</a> (for advanced users)</li>

documentation/known_issues.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Known Issues
2+
3+
The underlying engine behind the decision forests algorithms used by TensorFlow
4+
Decision Forests have been extensively production-tested. But this API to
5+
TensorFlow and Keras is new, and some issues are expected -- we are trying to
6+
fix them as quickly as possible.
7+
8+
See also the
9+
[known issues of Yggdrasil Decision Forests](https://github.com/google/yggdrasil-decision-forests/documentation/known_issues.md).
10+
11+
## Windows Pip package is not available
12+
13+
TensorFlow Decision Forest is not yet available as a Windows Pip package.
14+
15+
**Workarounds:**
16+
17+
- *Solution #1:* Install
18+
[Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux)
19+
on your Windows machine and follow the Linux instructions.
20+
21+
## No support for in-model preprocessing with input of rank 1
22+
23+
Keras expands the dimension of input tensors to rank 2 (using `tf.expand_dims`).
24+
If your `preprocessing` model argument only support rank 1 tensors, you will get
25+
an error complaining about tensor shape.
26+
27+
**Workarounds:**
28+
29+
- *Solution #1:* Apply your preprocessing before the model, for example using
30+
the dataset's
31+
[`map`](https://www.tensorflow.org/api_docs/python/tf/data/Dataset#map)
32+
method.
33+
34+
- *Solution #2:* Wrapps your preprocessing function into another function that
35+
[squeeze](https://www.tensorflow.org/api_docs/python/tf/squeeze) its inputs.

documentation/tutorials/advanced_colab.ipynb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@
5555
"import pandas as pd\n",
5656
"import tensorflow as tf\n",
5757
"import math\n",
58-
"import collections"
58+
"import collections\n",
59+
"\n",
60+
"try:\n",
61+
" from wurlitzer import sys_pipes\n",
62+
"except:\n",
63+
" from colabtools.googlelog import CaptureLog as sys_pipes"
5964
]
6065
},
6166
{

0 commit comments

Comments
 (0)