Skip to content

Fix README pipeline example syntax and model name - #847

Open
dajiaohuang wants to merge 1 commit into
analysiscenter:masterfrom
dajiaohuang:docs/readme-pipeline-examples
Open

dajiaohuang wants to merge 1 commit into
analysiscenter:masterfrom
dajiaohuang:docs/readme-pipeline-examples

Conversation

@dajiaohuang

Copy link
Copy Markdown

Both multiline pipeline examples raise SyntaxError because the chained calls are not enclosed in parentheses. Wrap each expression so Python permits the line breaks. Also train the model under the same name (model) used by init_model; the pipeline API resolves the registered name, rather than the model class name.

Validation: both original examples fail Python AST parsing; both corrected examples parse. Executed the corrected chains with synthetic mock dataset/pipeline objects, including a registered-name assertion. Cross-checked the naming rule against Pipeline.init_model/train_model docstrings. This is a documentation-only change; no BatchFlow runtime, datasets, model inference, training, or GPU was used.

@dajiaohuang
dajiaohuang requested a review from a team as a code owner October 23, 2026 23:45

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant