You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exemplify csv handing in serving for boosted_trees model. (tensorflow#4401)
* Exemplify csv handing in serving for boosted_trees model by using custom built signature_def.
* some minor touches.
* Reverted back to using the file instead of module in the example.
Copy file name to clipboardExpand all lines: official/boosted_trees/README.md
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -74,15 +74,36 @@ saved_model_cli show --dir /tmp/higgs_boosted_trees_saved_model/${TIMESTAMP}/ \
74
74
```
75
75
76
76
### Inference
77
-
Let's use the model to predict the income group of two examples:
77
+
Let's use the model to predict the income group of two examples.
78
+
Note that this model exports SavedModel with the custom parsing module that accepts csv lines as features. (Each line is an example with 28 columns; be careful to not add a label column, unlike in the training data.)
78
79
79
80
```
80
81
saved_model_cli run --dir /tmp/boosted_trees_higgs_saved_model/${TIMESTAMP}/ \
0 commit comments