Skip to content

[Bug]: beam_PreCommit_Python_ML fails with AttributeError #36936

@yuwtennis

Description

@yuwtennis

What happened?

Problem

I have been working on PR #36932 and experienced error in github actions.
So I have created as an separated issue.

Github Action for beam_PreCommit_Python_ML is failing due to AttributeError.
Below is the snippet from python version 3.11 .

AttributeError: The following error was raised: 'IForest' object has no attribute '__sklearn_tags__'. It seems that there are no classes that implement `__sklearn_tags__` in the MRO and/or all classes in the MRO call `super().__sklearn_tags__()`. Make sure to inherit from `BaseEstimator` which implements `__sklearn_tags__` (or alternatively define `__sklearn_tags__` but we don't recommend this approach). Note that `BaseEstimator` needs to be on the right side of other Mixins in the inheritance order. [while running 'AnomalyDetection/RunOfflineDetector/Call RunInference (OfflineDetector:808c63)/BeamML_RunInference']

https://github.com/apache/beam/actions/runs/19757409550/job/56611473889?pr=36932#step:9:3263
https://github.com/apache/beam/actions/runs/19757409550/job/56611473885?pr=36932#step:9:3084
https://github.com/apache/beam/actions/runs/19757409550/job/56611473905?pr=36932#step:9:3091

Issue Priority

Priority: 2 (default / most bugs 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions