[ 
https://issues.apache.org/jira/browse/BEAM-9421?focusedWorklogId=435695&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-435695
 ]

ASF GitHub Bot logged work on BEAM-9421:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 20/May/20 21:05
            Start Date: 20/May/20 21:05
    Worklog Time Spent: 10m 
      Work Description: rose-rong-liu commented on a change in pull request 
#11075:
URL: https://github.com/apache/beam/pull/11075#discussion_r428307092



##########
File path: website/www/site/content/en/documentation/patterns/ai-platform.md
##########
@@ -0,0 +1,79 @@
+---
+title: "AI Platform integration patterns"
+---
+<!--
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+# AI Platform integration patterns
+
+This page describes common patterns in pipelines with Google Cloud AI Platform 
transforms.
+
+{{< language-switcher java py >}}
+
+## Getting predictions
+
+This section shows how to use [Google Cloud AI Platform 
Prediction](https://cloud.google.com/ai-platform/prediction/docs/overview) to 
make predictions about new data from a cloud-hosted machine learning model.
+ 
+[tfx_bsl](https://github.com/tensorflow/tfx-bsl) is a library with a Beam 
PTransform called `RunInference`. `RunInference` is able to perform an 
inference that can use an external service endpoint for receiving data. When 
using a service endpoint, the transform takes a PCollection of type 
`tf.train.Example` and, for every batch of elements, sends a request to AI 
Platform Prediction. The size of a batch may vary. For more details on how Beam 
finds the best batch size, refer to a docstring for 
[BatchElements](https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.util.html?highlight=batchelements#apache_beam.transforms.util.BatchElements).

Review comment:
       We're actively looking for solutions for sequence example support, which 
we may leverage arrow on. Maybe add a note to mention sequence example will be 
supported shortly?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 435695)
    Time Spent: 11h 50m  (was: 11h 40m)

> AI Platform pipeline patterns
> -----------------------------
>
>                 Key: BEAM-9421
>                 URL: https://issues.apache.org/jira/browse/BEAM-9421
>             Project: Beam
>          Issue Type: Sub-task
>          Components: website
>            Reporter: Kamil Wasilewski
>            Assignee: Kamil Wasilewski
>            Priority: P2
>              Labels: pipeline-patterns
>          Time Spent: 11h 50m
>  Remaining Estimate: 0h
>
> New pipeline patterns should be contributed to the Beam's website in order to 
> demonstrate how newly implemented Google Cloud AI PTransforms can be used in 
> pipelines.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to