charlespnh opened a new issue, #35841:
URL: https://github.com/apache/beam/issues/35841

   ### What would you like to happen?
   
   It seems like currently Beam's anomaly detection modules only supports 
numeric features, e.g. `beam.Row(f1=0.1, f2=0.2, ...)` - 
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/ml/anomaly/detectors/pyod_adapter.py#L80
   
   For use cases with vector embedding, e.g. `beam.Row(embedding=[0.1, 0.2, 
...])`, then the pipeline will fail with the following error:
   ```
   np_batch.append(np.fromiter(row, dtype=np.float64))
   TypeError: float() argument must be a string or a real number, not 'list'
   
   The above exception was the direct cause of the following exception:
   
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   ValueError: setting an array element with a sequence.
   ```
   
   ### Issue Priority
   
   Priority: 2 (default / most feature requests should be filed as P2)
   
   ### Issue Components
   
   - [ ] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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.

To unsubscribe, e-mail: github-unsubscr...@beam.apache.org.apache.org

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

Reply via email to