This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/asf-site by this push: new 45f7b3440ca Publishing website 2022/09/13 22:17:25 at commit adff92b 45f7b3440ca is described below commit 45f7b3440caa4aa4c785b910ca8a386b987d9cbb Author: jenkins <bui...@apache.org> AuthorDate: Tue Sep 13 22:17:25 2022 +0000 Publishing website 2022/09/13 22:17:25 at commit adff92b --- .../documentation/sdks/python-machine-learning/index.html | 2 +- website/generated-content/sitemap.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/generated-content/documentation/sdks/python-machine-learning/index.html b/website/generated-content/documentation/sdks/python-machine-learning/index.html index 605f0e6a993..4a418f5710f 100644 --- a/website/generated-content/documentation/sdks/python-machine-learning/index.html +++ b/website/generated-content/documentation/sdks/python-machine-learning/index.html @@ -47,7 +47,7 @@ with pipeline as p: ('img2', torch.tensor([[1,2,3],[4,5,6],...])), ('img3', torch.tensor([[1,2,3],[4,5,6],...])), ]) - predictions = data | RunInference(KeyedModelHandler) + predictions = data | RunInference(keyed_model_handler) </code></pre><h3 id=use-the-predictionresults-object>Use the PredictionResults object</h3><p>When doing a prediction in Apache Beam, the output <code>PCollection</code> includes both the keys of the input examples and the inferences. Including both these items in the output allows you to find the input that determined the predictions.</p><p>The <code>PredictionResult</code> is a <code>NamedTuple</code> object that contains both the input and the inferences, named <code>example</code> and [...] def process(self, element: Tuple[str, PredictionResult]): key, prediction_result = element diff --git a/website/generated-content/sitemap.xml b/website/generated-content/sitemap.xml index 0b2f8d2a9c0..2ba465d3cdf 100644 --- a/website/generated-content/sitemap.xml +++ b/website/generated-content/sitemap.xml @@ -1 +1 @@ -<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/blog/beam-2.41.0/</loc><lastmod>2022-08-23T21:36:06+00:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2022-09-02T14:00:10-04:00</lastmod></url><url><loc>/blog/</loc><lastmod>2022-09-02T14:00:10-04:00</lastmod></url><url><loc>/categories/</loc><lastmod>2022-09-02T14:00:10-04:00</lastmod></url><url><loc>/catego [...] \ No newline at end of file +<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/blog/beam-2.41.0/</loc><lastmod>2022-08-23T21:36:06+00:00</lastmod></url><url><loc>/categories/blog/</loc><lastmod>2022-09-02T14:00:10-04:00</lastmod></url><url><loc>/blog/</loc><lastmod>2022-09-02T14:00:10-04:00</lastmod></url><url><loc>/categories/</loc><lastmod>2022-09-02T14:00:10-04:00</lastmod></url><url><loc>/catego [...] \ No newline at end of file