Skip to content

Commit

Permalink
Fix golden model name
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 583001307
  • Loading branch information
rstz authored and copybara-github committed Nov 16, 2023
1 parent a72a9d6 commit 74bec4b
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion documentation/tensorflow_serving.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ In this example, we use an already trained TF-DF model.
```shell
# Get a TF-DF model
git clone https://github.com/tensorflow/decision-forests.git
MODEL_PATH=$(pwd)/decision-forests/tensorflow_decision_forests/test_data/model/saved_model_adult_gbt
MODEL_PATH=$(pwd)/decision-forests/tensorflow_decision_forests/test_data/model/saved_model_adult_rf

echo "The TF-DF model is available at: ${MODEL_PATH}"
```
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_decision_forests/keras/keras_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ def test_properties(self):
def test_golden_model_gbt(self):
dataset = adult_dataset()
loaded_model = models.load_model(
os.path.join(tfdf_test_data_path(), "model/saved_model_adult_gbt")
os.path.join(tfdf_test_data_path(), "model/saved_model_adult_rf")
)
prediction = loaded_model.predict(
keras.pd_dataframe_to_tf_dataset(dataset.test, label="income")
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_decision_forests/test_data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
This directory only contains small files used for the unit tests.

This directory structure is organized as follows: - model: Pre-trained models. -
saved_model_adult_gbt: TF SavedModel containing a TF-DF GBT model trained with
saved_model_adult_rf: TF SavedModel containing a TF-DF GBT model trained with
Keras.

0 comments on commit 74bec4b

Please sign in to comment.